Commit Graph

69 Commits

Author SHA1 Message Date
fiatjaf
112e204133 refactor regexes for HTML replacing stuff so another telegram instant view bug is fixed.
now with images inside blockquotes (from quoted events).
2023-09-21 14:55:43 -03:00
fiatjaf
24a104fd56 no-cache telegram instant view responses. 2023-09-21 09:39:31 -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
fiatjaf
55479e3523 replacing npub/nprofile references with username on rendered images, line length fixes for quotes and preceding quotes with a space -- along with some small refactors. 2023-09-19 01:35:32 -03:00
Daniele Tonon
563920a44e Fixed a bug in using renderingInlineMentions 2023-09-18 08:43:06 +02: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
769e06554b make instant view happen when there is video or image and the note is big enough. 2023-09-13 21:41:22 -03:00
fiatjaf
700d12eb27 fix titleize() 2023-09-13 21:26:39 -03:00
fiatjaf
daf83b136c bring back pretty JSON. 2023-09-13 21:13:37 -03:00
fiatjaf
7291dd4bed telegram instant preview when a note is very big. 2023-09-13 20:49:24 -03:00
Daniele Tonon
67599a696f Add homepage 2023-09-11 07:48:38 +02:00
Daniele Tonon
a20dcee2e9 Enable custom canonical via ENV 2023-09-06 14:03:53 +02:00
Daniele Tonon
5fd9b7ca59 Filter out excludedRelays from profile relays 2023-08-07 16:28:40 +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
52b936493a Optimize note1 redirect 2023-07-31 15:10:04 +02:00
Daniele Tonon
11652301bd Increase last notes and move up details for more visibility 2023-07-27 23:54:13 +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
197ef89e3e Avoid caching empty reply/note lists 2023-07-14 14:46:32 +02:00
Daniele Tonon
df83b221a4 Include relays in the profile 2023-07-14 11:09:14 +02:00
Daniele Tonon
0c80007141 Use TrimPrefix instead of Replace 2023-07-13 21:56: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
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
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
fiatjaf
4b8f75e375 cache relays from nip65. 2023-07-12 10:53:32 -03:00
fiatjaf
eac5b4c78b use envconfig for managing environment variables. 2023-07-12 10:42:55 -03:00
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