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
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