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 |
|
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 |
|