Commit Graph

139 Commits

Author SHA1 Message Date
Daniele Tonon
bb24a43eb2 Fix layout bug in mobile
Added in [af8c4ec]
2023-07-16 23:49:06 +02:00
Daniele Tonon
9c4ddbcfbb Fix og/twitter meta reverting to the old ones 2023-07-16 16:27:53 +02:00
Daniele Tonon
c954012a57 Improve html template semantics 2023-07-16 01:46:58 +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
bf3c85395f Update css version to bypass production cache 2023-07-15 23:18:38 +02:00
Daniele Tonon
d8fee0b4aa Remove not working inline build directive 2023-07-14 18:54:02 +02:00
Daniele Tonon
e52fe76c3d Update relays text 2023-07-14 18:46:28 +02:00
Daniele Tonon
af8c4ec8a9 Rearrange template headers 2023-07-14 18:10:52 +02:00
Daniele Tonon
197ef89e3e Avoid caching empty reply/note lists 2023-07-14 14:46:32 +02:00
Daniele Tonon
9272d09048 Add the hostname to the relay page 2023-07-14 13:47:21 +02:00
Daniele Tonon
8df50b84e3 Show minimal profile infos in the left column when scrolling (desktop) 2023-07-14 12:43:23 +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
0c80007141 Use TrimPrefix instead of Replace 2023-07-13 21:56:20 +02:00
Daniele Tonon
6d7d9416f4 Add relay sitemaps 2023-07-13 21:47:25 +02:00
Daniele Tonon
85c31ee3df Fix the sitemap <loc> 2023-07-13 16:39:27 +02:00
Daniele Tonon
20c6382366 Update the relay page using the profile template 2023-07-13 16:25:20 +02:00
Daniele Tonon
4e2f485466 Fix the protocol handling on the relay pages 2023-07-13 15:39:08 +02:00
Daniele Tonon
582093503b Migrate from note to nevent 2023-07-13 15:00:25 +02:00
Daniele Tonon
2ea209c1ca Use note entity in the sitemap 2023-07-13 11:19:49 +02:00
fiatjaf
55c2735ce9 tweak sitemap parameters. 2023-07-12 21:04:35 -03:00
Daniele Tonon
c32362e220 Add initial support to profile sitamaps 2023-07-12 23:27:10 +02:00
Daniele Tonon
0cad5a662a Disable cache-control header on nocache tag 2023-07-12 22:11:21 +02:00
Daniele Tonon
2d540b91b4 Add nocache tag to the justfile (air) refresh_build task 2023-07-12 21:58:29 +02:00
Daniele Tonon
fa644864dd Add .air.toml 2023-07-12 19:28:40 +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
fiatjaf
0dd5ad262f cache db garbage collection. 2023-07-12 12:48:01 -03:00
fiatjaf
36186b6e83 vastly simplify code for TTLs.
turns out badger had support for that out of the box.
2023-07-12 12:43:39 -03:00
fiatjaf
e5e17f08c9 fix slice creation. 2023-07-12 10:56:30 -03:00
fiatjaf
ff56095145 default port to 2999 2023-07-12 10:53:53 -03:00
fiatjaf
4b8f75e375 cache relays from nip65. 2023-07-12 10:53:32 -03:00
fiatjaf
512d91e773 more efficient sorting. 2023-07-12 10:44:12 -03:00
fiatjaf
eac5b4c78b use envconfig for managing environment variables. 2023-07-12 10:42:55 -03:00
fiatjaf
d63bb45fca persist expiring keys. 2023-07-12 10:39:53 -03:00
fiatjaf
6e15520beb on-disk cache with badger. 2023-07-12 10:39:52 -03:00
Daniele Tonon
bd3b4bee0b Sort profile notes by date 2023-07-12 12:52:10 +02:00
Daniele Tonon
e03b522554 Add an environment variable to disable the cache 2023-07-12 11:51:04 +02:00
fiatjaf
d734b189d9 initial broken draft of relays page. 2023-07-11 18:19:11 -03:00
fiatjaf
bfa2f5f537 update go-nostr to fix a stupid bug. 2023-07-11 15:26:33 -03:00
fiatjaf
15dc2dff45 small context tweaks. 2023-07-11 11:04:16 -03:00
fiatjaf
6f24ed761a improve caching (cache lastNotes). 2023-07-09 11:22:08 -03:00
fiatjaf
ecda6ac414 client list rendering based on event kind, not code. 2023-07-08 20:54:31 -03:00
fiatjaf
0d150b1668 variable naming quibbles. 2023-07-08 20:27:27 -03:00
fiatjaf
7c5d37ecfc cache headers for much longer. 2023-07-08 20:26:34 -03:00
fiatjaf
393556b18c support nip05 codes. 2023-07-08 20:21:49 -03:00
fiatjaf
3531ecc4ca stop sending npubs to relays and use hints when fetching notes. 2023-07-08 20:08:51 -03:00
fiatjaf
9f2272072e prevent halting, fetch relays per pubkey and improve notes and profile fetching. 2023-07-08 09:09:42 -03:00