Commit Graph

68 Commits

Author SHA1 Message Date
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
fiatjaf
92d8b6a6d1 use event relays when searching for pubkey metadata, compute nprofile. 2023-10-26 08:17:27 -03:00
fiatjaf
ef35358319 get rid of fallback for cache. 2023-10-22 09:31:29 -03:00
fiatjaf
f7f231dfc6 rearrange relays and add public relaying.io 2023-10-03 15:39:45 -03:00
fiatjaf
7088986f21 strip querystring from relays. 2023-10-03 15:33:35 -03:00
fiatjaf
4f3141f66a fetch seenOn relays for individual events. 2023-10-02 15:17:39 -03:00
fiatjaf
08c16d371c update go-nostr to get relay information from pool. 2023-10-02 09:24:07 -03:00
fiatjaf
b0bda60577 improve and fix telegram instant preview for markdown articles. 2023-09-14 10:31:38 -03:00
fiatjaf
3775841ca0 enforce kind when loading naddr with a specified kind. 2023-09-14 08:01:55 -03:00
fiatjaf
a2eda96b98 add primal relay as a source for everything. 2023-09-05 06:13:57 -03:00
Daniele Tonon
92d1944e69 Replace nson.Marshal with json one
Because:
> note1lykvtd827lg6eqmgajqxkwau56fwx00u4z950sdqaah35jp3g3rqru9tj7
"it's a giant event broke my nson"
2023-08-30 18:29:54 +02:00
fiatjaf
da6cac23eb escape from pool.EnsureRelay() earlier. 2023-08-07 10:10:20 -03:00
Daniele Tonon
7ee3119170 Fix profile last notes order 2023-08-07 13:05:20 +02:00
fiatjaf
0f3633bcca update go-nostr and don't wait for the entire world to fetch. 2023-08-07 07:12:15 -03:00
Daniele Tonon
dcf8e3a451 Filter out some relays from the archive 2023-07-27 23:30:05 +02:00
Daniele Tonon
eabec9b590 Add npubs archive
Add more npubs
2023-07-27 23:15:48 +02:00
Daniele Tonon
30d9db9068 Remove relays duplicates when fetching an event 2023-07-16 00:03:03 +02:00
Daniele Tonon
0e77a8f108 Remove relays duplicates merging kind 3 and kind 10002 lists 2023-07-16 00:01:26 +02:00
Daniele Tonon
197ef89e3e Avoid caching empty reply/note lists 2023-07-14 14:46:32 +02:00
Daniele Tonon
df83b221a4 Include relays in the profile 2023-07-14 11:09:14 +02:00
Daniele Tonon
b688f0ff41 Remove debug logs 2023-07-14 11:08:02 +02:00
Daniele Tonon
c32362e220 Add initial support to profile sitamaps 2023-07-12 23:27:10 +02:00
fiatjaf
c0cbb3c27c disable cache at build time.
using build tag `nocache` to disable usage of the disk cache entirely.
2023-07-12 14:22:34 -03:00
Daniele Tonon
9dbd4d6d40 Remove duplicates in the relays list before fetching last notes 2023-07-12 17:53:17 +02:00
Daniele Tonon
0cbb4918e6 Randomize access to the hardcoded relays list 2023-07-12 17:51:15 +02:00