fiatjaf
91ed172f56
use badger for now because lmdb was having that weird issue.
2025-03-18 10:40:01 -03:00
fiatjaf
a918355d97
update go-nostr.
2025-02-23 07:43:55 -03:00
fiatjaf
82277eb6d9
persistent KVStore on LMDB.
2025-02-17 16:47:35 -03:00
fiatjaf
805d47f163
update libraries and support kind:20 photos.
2025-01-21 17:48:39 -03:00
dtonon
c657041e20
Update defaultTrustedPubKeys
2024-11-25 16:43:17 +01:00
fiatjaf
0682981b83
commands to ban and unban pubkeys now.
2024-11-25 12:41:51 -03:00
fiatjaf
f9a79f209e
prevent caching of incomplete profile pages.
2024-10-15 00:08:02 -03:00
fiatjaf
caca355bbd
fix for FetchSpecificEvent().
2024-10-14 22:28:37 -03:00
fiatjaf
5922ff3b92
fetch author notes in the background and only under certain conditions.
2024-10-07 10:57:21 -03:00
fiatjaf
fc2daa1dd6
basically replace getEvent() with sys.FetchSpecificEvent()
2024-10-06 23:16:33 -03:00
fiatjaf
126aec6ea9
simplify and reduce internal db writes.
2024-10-06 21:37:28 -03:00
fiatjaf
a30d484432
using leafdb instead of the messy badger db we had.
2024-10-06 21:17:08 -03:00
fiatjaf
84b81654f0
log 404s and other log improvements.
2024-10-06 15:56:20 -03:00
fiatjaf
0012a45488
label our submany queries.
2024-09-26 21:49:41 -03:00
fiatjaf
38557f3e9b
switch to lmdb for the eventstore, sacrifice avif and force musl compilation in the meantime.
2024-09-26 21:49:27 -03:00
fiatjaf
b9ad4b518f
update go-nostr, eventstore, khatru; replace nostr-sdk.
2024-09-16 15:55:36 -03:00
fiatjaf
f59afbd5b7
problem: we were not filtering by author upon receiving a naddr.
...
fixes https://github.com/fiatjaf/njump/issues/64
2024-08-06 10:54:01 -03:00
fiatjaf
0dd8c38a95
remove opentelemetry.
2024-08-02 15:41:29 -03:00
fiatjaf
c0004f67a2
fix slowness of previous refactors that injected nostr-sdk into this codebase + refactors.
...
- adjusting many small things related to nostr-sdk usage
- fetching profiles in a smarter way
- decoupling the logic for rendering profile pages from the `grabData`/`getEvent` flow of other event pages.
- incorporating nostr-sdk more holistically, including more hints stuff
- improving nostr-sdk itself after some bugs and weird behaviors observed here
- set up opentelemetry (should probably remove this later)
2024-08-02 12:48:58 -03:00
dtonon
a7668433f7
Fix outdated profiles, always use the most recent event
2024-08-01 16:29:12 +02:00
fiatjaf
9f2db1cf3b
relayConfig.ExcludedRelays was not useful.
2024-07-29 17:04:01 -03:00
fiatjaf
18e6a396c5
update libraries so the weird lag gets better.
2024-07-29 15:03:58 -03:00
fiatjaf
9944cad845
stop increasing cache duration for metadata events.
2024-07-28 18:12:18 -03:00
fiatjaf
56b3919d4e
use new nostr-sdk with hints (full outbox) support for improved event fetching that hopefully works.
2024-07-27 22:58:10 -03:00
fiatjaf
5966234156
update nostr-sdk to fix relay lists and move things around.
2024-05-23 23:03:22 -03:00
fiatjaf
89daf32a5f
get rid of some unnecessary asynchronous fanciness on fetching user notes that was leaking goroutines.
2024-05-04 22:40:57 -03:00
fiatjaf
5092e25837
use a little less relays.
2024-04-29 09:26:39 -03:00
fiatjaf
0b7a65b285
update dependencies because incompatibilities.
2024-04-26 15:36:07 -03:00
fiatjaf
8b038d7d18
add snort relay for profile search.
2024-02-17 14:08:01 -03:00
mattn
1019fef1d3
Relay config by json ( #47 )
...
* relay-config.json
* fix README.md
* trustedPubKeys is not relay configuration
* update README.md
2024-02-17 14:05:22 -03:00
fiatjaf
4dda52cfb9
use stdlib "slices" and updated eventstore for badger possible fix.
2024-02-08 16:32:08 -03:00
rabble
93628b56dd
adding relay.nos.social as a profile look up relay
2024-01-29 20:51:11 -03:00
fiatjaf
d6527011db
ensure hinted relays (from nip19/nip05) get prioritized in the generation of nip19 codes afterwards -- if we had success fetching from them.
2024-01-16 18:07:47 -03:00
fiatjaf
d24cbc8e81
get rid of false positives for isntRealRelay() by not eliminating the path from the relay URL.
2023-12-23 18:27:48 -03:00
fiatjaf
c20653594f
update khatru.
2023-12-07 08:20:12 -03:00
fiatjaf
bd67496baf
use noswhere relay as a source for profiles and random ids (@semisol).
2023-12-02 19:44:04 -03:00
fiatjaf
98ac4f6855
use primal relay as event source by id and filter out "virtual" relays from being returned or added to hints.
2023-11-30 12:19:50 -03:00
fiatjaf
8a2fa69cb9
refactor unique() to be faster.
2023-11-30 12:19:49 -03:00
fiatjaf
82ad525b91
stop relying on relay.nostr.band so much.
2023-11-30 12:19:49 -03:00
fiatjaf
464f043d63
reverse sort order: newer stuff at the top.
2023-11-11 07:45:23 -03:00
fiatjaf
804a1f5253
fix slices.SortFunc() -- did the API change?
2023-11-08 17:43:16 -03:00
fiatjaf
f1188a2112
fix typo in function name introduced by search-and-replace procedure.
2023-11-08 17:42:32 -03:00
fiatjaf
0b6a4838c5
getRelay() -> getRandomRelay()
2023-11-07 17:03:44 -03:00
fiatjaf
9ee3b242c0
mention hints in failed to find error.
2023-11-07 16:57:56 -03:00
fiatjaf
ec4a8bc280
relay hints with scheme.
2023-11-06 17:59:21 -03:00
fiatjaf
274a6da19b
improve error messages and fix wrong error being returned.
2023-11-06 11:17:45 -03:00
fiatjaf
e477d38e66
fixing implementation of previous commit in multiple places.
2023-11-05 14:39:10 -03:00
fiatjaf
9967d10cd6
using eventstore for storing events, querying locally.
2023-11-05 14:39:10 -03:00
fiatjaf
d05440b98f
update go-nostr.
2023-11-04 16:09:00 -03:00
fiatjaf
8111e16960
abstract querying of author and relay last notes, and caching.
2023-10-26 22:30:20 -03:00