Commit Graph

75 Commits

Author SHA1 Message Date
fiatjaf
5ac66440bb templ dependency crap again. 2024-09-06 21:06:22 -03:00
fiatjaf
dfb17178f0 templ keeps changing. 2024-09-01 20:32:18 -03:00
fiatjaf
01a446d655 fix for profiles not loading the first time when some relay is buggy.
see nostr:nevent1qqsqqqzh2l7mf542r3urls4yefa6scxmnknq66z6p5jtl6ap8wem2cspzpmhxue69uhk2tnwdaejumr0dshszrnhwden5te0dehhxtnvdakz7qg7waehxw309ahx7um5wgkhqatz9emk2mrvdaexgetj9ehx2ap0thp0n8
2024-08-29 16:20:39 -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
fiatjaf
43766c877b update to nostr-sdk with outbox results short cache. 2024-07-29 17:04:19 -03:00
fiatjaf
18e6a396c5 update libraries so the weird lag gets better. 2024-07-29 15:03:58 -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
dtonon
0113da6120 Run go mod tidy 2024-07-25 17:17:11 +02:00
dtonon
3b1a857f6c Merge branch 'wiki' 2024-07-25 17:10:34 +02:00
dtonon
4cb5d6f5c7 Add basic wiki articles rendering
Wikilinks are broken
2024-07-25 15:21:34 +02:00
dtonon
3e0f01b880 Update go.mod/sum 2024-07-25 11:43:24 +02:00
Yasuhiro Matsumoto
ab36e5392b fix build 2024-07-24 21:57:10 +02:00
fiatjaf
47423ddcc4 move some things to enhanced_event.go, that makes more sense. 2024-06-19 22:06:09 -03:00
fiatjaf
66cef7d1c0 cache image detection results so we don't run it over and over for the same image. 2024-06-18 16:37:58 -03:00
fiatjaf
cf6032ea7b porn detector. 2024-06-17 15:53:27 -03:00
dtonon
4b2c7c017f Upgrade go-nostr to v0.32.0 2024-06-07 12:42:04 +02:00
dtonon
7a422da589 Upgrade to go-nostr v0.31.4 2024-06-07 12:35:36 +02:00
fiatjaf
5966234156 update nostr-sdk to fix relay lists and move things around. 2024-05-23 23:03:22 -03:00
fiatjaf
7a2aadb749 update templ and format. 2024-05-08 11:47:13 -03:00
fiatjaf
fb29802883 forgot to update khatru. 2024-04-27 18:09:07 -03:00
fiatjaf
0b7a65b285 update dependencies because incompatibilities. 2024-04-26 15:36:07 -03:00
fiatjaf
574e9b0495 update to fix badger backend query bug that was leaking goroutines. 2024-04-26 15:15:51 -03:00
fiatjaf
1af2550e9f update go-nostr to fix nip05. 2024-03-11 13:46:52 -03:00
Daniele Tonon
be14e2a400 Update go-nostr to v0.29.2 2024-03-10 23:01:24 +01:00
fiatjaf
c51ed56d14 update templ 2024-02-13 12:31:10 -03:00
fiatjaf
4dda52cfb9 use stdlib "slices" and updated eventstore for badger possible fix. 2024-02-08 16:32:08 -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
6b19f5103c move nip31, nip53, nip94 definitions to go-nostr and prepare for nip52. 2024-01-10 12:14:56 -03:00
fiatjaf
7f0bb418b6 ported all templates to templ syntax. 2024-01-07 15:48:55 -03:00
fiatjaf
c4e61ac22c fix eventstore bug (hopefully). 2024-01-05 18:16:34 -03:00
fiatjaf
0940f0f981 this requires a variation of go-text/typesetting that exposes .Codepoint 2023-12-28 16:27:23 -03:00
fiatjaf
46a4891048 use emojiBuffer as the rule and make mainBuffer adapt to it, removing glyphs as necessary. 2023-12-28 16:22:18 -03:00
fiatjaf
f06badf393 trying to remove unused glyphs from mainBuffer since they got merged in emojiBuffer. 2023-12-28 15:39:44 -03:00
fiatjaf
1a154f57e9 use fiatjaf/emoji for IsEmoji(). 2023-12-27 19:19:18 -03:00
fiatjaf
86f6a09ea3 using a custom RunIterator that takes emojis into account and shapes them with a different font.
it doesn't actually work since the different outputs returned are treated by LineWrapper as necessarily belonging to different lines, so we'll have to do something different.
2023-12-26 11:02:45 -03:00
fiatjaf
5df944705e use go-text/typesetting library to render text better: rendering farsi. 2023-12-25 23:27:09 -03:00
fiatjaf
9c1a7c0ee9 upgrade eventstore. 2023-12-24 07:50:51 -03:00
Daniele Tonon
89a1bb3104 Update text-image design with the author's details and the event date 2023-12-21 14:35:22 +01:00
fiatjaf
dbbf18584b update dependencies. 2023-12-10 07:44:18 -03:00
fiatjaf
c20653594f update khatru. 2023-12-07 08:20:12 -03:00
fiatjaf
35ce972ea6 update eventstore. 2023-12-06 07:17:47 -03:00
fiatjaf
a68d321825 update go-nostr to fix concurrent relays map access bug. 2023-12-04 15:17:01 -03:00
fiatjaf
89763b12ac update go version and write environment variables on README. 2023-12-02 11:26:32 -03:00
fiatjaf
6318910539 update gomarkdown library to fix nil pointer bug. 2023-11-22 22:04:57 -03:00
fiatjaf
bccd22654c ensure metadata is never nil again. 2023-11-22 11:45:38 -03:00
fiatjaf
1448d4d53c replace image drawing library. 2023-11-19 13:10:08 -03:00
Daniele Tonon
b8345f9176 Add RSS for profiles and relays 2023-11-16 22:58:40 +01:00
fiatjaf
2814460acc update nostr-sdk to solve metadata parsing missing pubkey. 2023-11-16 10:22:52 -03:00
fiatjaf
f499ccde8a use .display_name on "fulano on Nostr:" headings when .name is not available. 2023-11-15 10:10:17 -03:00