Commit Graph

86 Commits

Author SHA1 Message Date
fiatjaf
6e15520beb on-disk cache with badger. 2023-07-12 10:39:52 -03: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
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
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
3531ecc4ca stop sending npubs to relays and use hints when fetching notes. 2023-07-08 20:08:51 -03:00
Daniele Tonon
785428be01 Redirect urls with a "nostr:" prefix 2023-06-13 00:43:41 +02:00
Daniele Tonon
9a7c47a2aa Add support for summary field and cut description if too long 2023-06-06 09:54:51 +02:00
Daniele Tonon
c47a6ba4f5 Manage not NIP-27 contents 2023-06-04 16:54:49 +02:00
Daniele Tonon
44f9c07ee5 Use a specific xss sanitizer for long form content 2023-06-03 00:18:00 +02:00
Daniele Tonon
c292a67bc0 Add markdown support for long format content 2023-06-02 18:09:49 +02:00
Daniele Tonon
64b2ce3e02 Fix rendering of naddr and other events 2023-06-01 16:43:47 +02:00
Daniele Tonon
ea0f0b647d Add link to the parent note, flag note as reply in the profile's last notes 2023-06-01 15:18:44 +02:00
Daniele Tonon
415fc088ba Revert global status to basicFormatting and replaceURLsWithTags 2023-06-01 15:18:44 +02:00
Daniele Tonon
94e6d0e009 Lower profiles' cache-control to 15min and notes' one to 24h 2023-05-30 07:24:00 +02:00
Daniele Tonon
1cf49a1d98 Add basic support for repost (kind 6) 2023-05-30 07:24:00 +02:00
Daniele Tonon
136d160091 Show last notes on profiles and add canonical to notes 2023-05-30 07:12:09 +02:00
Daniele Tonon
13120d01df Implement template for not profile/note kinds, improve details 2023-05-28 22:58:03 +02:00
Daniele Tonon
25eaad1595 Fix kinds/types - templates mapping 2023-05-27 14:45:32 +02:00
fiatjaf
65a61cdcd6 serve everything under the /njump/ path to prevent conflicts with root domain website. 2023-05-27 08:42:11 -03:00
fiatjaf
448021ee41 actually fix the templates. 2023-05-27 08:35:37 -03:00
fiatjaf
e621f0adab fix template embedding. 2023-05-27 08:15:53 -03:00
Daniele Tonon
c43de7478b Move all html/js templates under static/ 2023-05-27 12:04:50 +02:00
Daniele Tonon
9deaa1e410 Reorganize templates by partials 2023-05-27 12:04:50 +02:00
Daniele Tonon
1798cda23a Use an indipendent var for note content 2023-05-26 08:50:32 +02:00
Daniele Tonon
f38571c8e9 Sanitize html content 2023-05-25 21:05:58 +02:00
Daniele Tonon
41685aa8ea Add note rendering with basic formatting (images and links) 2023-05-25 20:55:22 +02:00
Daniele Tonon
d01e6c5d04 Split templates by event type
Currently fallback to the raw.html if type is not a profile
2023-05-25 20:53:47 +02:00
Daniele Tonon
0c90ec92ea Revert prettyJsonOrRaw update and use go-nostr v1.8.4 for all user's metadata 2023-05-25 20:53:47 +02:00
Daniele Tonon
2b10bc61b7 Setup up a first desktop version 2023-05-23 11:03:55 +02:00
fiatjaf
e6094dac1a fix primal url and html/template escaping the native link scheme. 2023-05-11 20:53:27 -03:00
fiatjaf
d144f5d14d add cache headers. 2023-05-11 17:41:49 -03:00
fiatjaf
00b824f98e it's working! even on twitter. 2023-05-10 23:05:31 -03:00
fiatjaf
48ed02dbd0 wip 2023-05-09 13:41:24 -03:00