Commit Graph

32 Commits

Author SHA1 Message Date
fiatjaf
47423ddcc4 move some things to enhanced_event.go, that makes more sense. 2024-06-19 22:06:09 -03:00
fiatjaf
b19f066a9d remove those many annoying fmt.Println() calls on every handler. 2024-06-12 15:42:56 -03:00
fiatjaf
3c4c5be320 rework it again to be more like it was before. 2024-01-08 09:43:54 -03:00
fiatjaf
a7325ea795 multiple fixes and adjustments until it compiles and runs. 2024-01-08 08:44:01 -03:00
Daniele Tonon
b8345f9176 Add RSS for profiles and relays 2023-11-16 22:58:40 +01:00
Daniele Tonon
9f6726023c Manage not existen or inactive relay 2023-11-16 15:04:57 +01:00
fiatjaf
8111e16960 abstract querying of author and relay last notes, and caching. 2023-10-26 22:30:20 -03:00
fiatjaf
f9e099c840 tailwind debug mode and build mode for prod and other adjustments. 2023-10-26 16:02:18 -03:00
fiatjaf
75b7a96675 replacing scripts with hyperscript. 2023-10-21 21:40:39 -03:00
fiatjaf
ebeb9820d8 move redirectors, renderRelay and renderProfile out of render. 2023-10-21 14:10:08 -03:00
fiatjaf
f70b13afe7 relay and archive sitemaps xml (with a nice hack because htmlgo is not xml-friendly.) 2023-10-21 13:34:32 -03:00
fiatjaf
65025d4967 tmpl relay.html and replace LastNoteItem struct with a simpler EnhancedEvent with methods instead of hardcoded values. 2023-10-21 12:19:30 -03:00
fiatjaf
901b2b5d62 tmpl migration: profile.html 2023-10-21 11:47:28 -03:00
fiatjaf
7293103fc7 first step in the migration to templ. 2023-10-19 21:11:26 -03:00
fiatjaf
637cfa55e9 make "s" (Settings) a global template function so we don't have to pass it around everywhere. 2023-10-07 08:20:10 -03:00
fiatjaf
a082efc45d delete explicit mentions to njump.me and use s.CanonicalHost 2023-09-24 13:57:42 -03:00
Daniele Tonon
3b828797b8 Fix missing code in 8ab0cfca 2023-09-20 12:53:53 +02:00
Daniele Tonon
8ab0cfca8c Update last notes design + add npub to relays list 2023-09-20 00:50:52 +02:00
Daniele Tonon
a20dcee2e9 Enable custom canonical via ENV 2023-09-06 14:03:53 +02:00
Daniele Tonon
c0ab08cba8 Increase the number of notes fetched for relays 2023-08-07 16:34:25 +02:00
Daniele Tonon
6a1ac7a302 Lower Cache-Control values 2023-08-04 15:56:10 +02:00
Daniele Tonon
2fcf17aa1d Set Cache-Control to 60s on failed fetch
This way we can permit a fast retry while keeping some control on DoS attacks
2023-08-04 15:40:30 +02:00
Daniele Tonon
ecd5d0c173 Set Cache-Control only when the data has been correctly fetched 2023-08-04 00:32:22 +02:00
Daniele Tonon
903bcc1712 Fix relay sitemap after the /r/... switch 2023-07-31 16:37:41 +02:00
Daniele Tonon
3b2fae5e5d Add relay hint to relay archive events 2023-07-31 16:11:02 +02:00
fiatjaf
4e587cf186 relay pages at /r/... and nip05 pages at /p/... 2023-07-27 13:00:52 -03:00
Daniele Tonon
d8fee0b4aa Remove not working inline build directive 2023-07-14 18:54:02 +02:00
Daniele Tonon
b688f0ff41 Remove debug logs 2023-07-14 11:08:02 +02:00
Daniele Tonon
6d7d9416f4 Add relay sitemaps 2023-07-13 21:47:25 +02:00
Daniele Tonon
4e2f485466 Fix the protocol handling on the relay pages 2023-07-13 15:39:08 +02:00
Daniele Tonon
0cad5a662a Disable cache-control header on nocache tag 2023-07-12 22:11:21 +02:00
fiatjaf
d734b189d9 initial broken draft of relays page. 2023-07-11 18:19:11 -03:00