fiatjaf
c0004f67a2
fix slowness of previous refactors that injected nostr-sdk into this codebase + refactors.
...
- adjusting many small things related to nostr-sdk usage
- fetching profiles in a smarter way
- decoupling the logic for rendering profile pages from the `grabData`/`getEvent` flow of other event pages.
- incorporating nostr-sdk more holistically, including more hints stuff
- improving nostr-sdk itself after some bugs and weird behaviors observed here
- set up opentelemetry (should probably remove this later)
2024-08-02 12:48:58 -03:00
fiatjaf
56b3919d4e
use new nostr-sdk with hints (full outbox) support for improved event fetching that hopefully works.
2024-07-27 22:58:10 -03:00
fiatjaf
ab34bde883
sitemaps of sitemaps of profile sitemaps.
2024-06-16 16:27:24 -03:00
fiatjaf
1eb3c45755
remove HTML archives pages, leave only the sitemaps.
2024-06-12 15:30:41 -03:00
fiatjaf
a7d29b151a
fix: fill archives after 10 minutes and then every 24 hours instead.
2024-06-12 15:18:35 -03:00
Yasuhiro Matsumoto
6a3ccdbeec
fix serve
2024-02-27 19:08:59 -03:00
fiatjaf
7b2c462868
add default trusted pubkeys.
2024-02-17 14:06:53 -03:00
mattn
1019fef1d3
Relay config by json ( #47 )
...
* relay-config.json
* fix README.md
* trustedPubKeys is not relay configuration
* update README.md
2024-02-17 14:05:22 -03:00
fiatjaf
8ad3e5cadd
allow manual deletes.
2024-01-16 18:52:08 -03:00
fiatjaf
a7325ea795
multiple fixes and adjustments until it compiles and runs.
2024-01-08 08:44:01 -03:00
fiatjaf
7f0bb418b6
ported all templates to templ syntax.
2024-01-07 15:48:55 -03:00
fiatjaf
91a0ea768b
do not use language detector model on dev mode.
...
because it's slow.
2023-12-31 17:50:12 -03:00
fiatjaf
5df944705e
use go-text/typesetting library to render text better: rendering farsi.
2023-12-25 23:27:09 -03:00
Yasuhiro Matsumoto
ba7261eee8
Safely close databases
2023-12-24 14:05:09 -03:00
Daniele Tonon
6a2ff72985
Load profiles last notes asynchronously
2023-12-20 07:50:17 +01:00
Daniele Tonon
0f6d6fa226
Support embedding notes in external web pages
...
SQASH
2023-11-27 12:20:49 +01:00
fiatjaf
0b5766fdfa
a humble test framework for opengraph stuff.
2023-11-09 10:36:00 -03:00
fiatjaf
3caa8578dd
use badger v4 for internal db.
2023-11-06 12:43:06 -03:00
fiatjaf
bf79cd9d0a
expose our internal db as a relay.
2023-11-06 11:47:13 -03:00
fiatjaf
9967d10cd6
using eventstore for storing events, querying locally.
2023-11-05 14:39:10 -03:00
fiatjaf
d50cd65165
fix typography: include plugin on prod build.
2023-10-29 08:15:32 -03:00
fiatjaf
f9e099c840
tailwind debug mode and build mode for prod and other adjustments.
2023-10-26 16:02:18 -03:00
fiatjaf
e4f0e40123
redirect from favicon.ico to /static/...
2023-10-22 09:28:33 -03:00
fiatjaf
db111e6398
picking random content happens on the server, homepage loads with zero overhead.
2023-10-21 18:39:56 -03:00
fiatjaf
9d86539349
cleanup template remainings.
2023-10-21 14:37:49 -03:00
fiatjaf
d459769915
rename render -> render_event.go
2023-10-21 14:10:31 -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
8cd313572f
adjust templateMapping.
2023-10-21 08:25:58 -03:00
fiatjaf
a04f82764a
rename variable CanonicalHost to Domain.
2023-10-21 07:47:37 -03:00
fiatjaf
6aa1440b05
tmpl migration: note.html
2023-10-21 07:45:44 -03:00
fiatjaf
493ee21465
DISK_CACHE_PATH as an environment variable.
2023-10-21 07:45:03 -03:00
fiatjaf
bc947e29d8
mass tmpl migration: partials, other.html and archive.html.
2023-10-21 00:47:19 -03:00
fiatjaf
4b1dddebae
make robots.txt rendering a simple string thing.
2023-10-19 21:11:26 -03:00
fiatjaf
7293103fc7
first step in the migration to templ.
2023-10-19 21:11:26 -03:00
fiatjaf
9037b60663
rename CANONICAL_HOST variable to DOMAIN (with backwards-compatible fallback).
2023-10-19 08:35:38 -03:00
fiatjaf
e5d37ece3c
placeholder favicon handler.
2023-10-10 09:35:16 -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
f169c01e67
fix .metadata.Website without a leading "https://"
2023-10-07 08:15:52 -03:00
fiatjaf
a0a528d073
rename generate => renderImage
2023-10-01 15:56:38 -03:00
fiatjaf
6ce339e242
cors everywhere because why not.
2023-09-24 15:38:45 -03:00
fiatjaf
4e89a2125e
somewhat-working oembed support.
2023-09-23 22:16:57 -03:00
fiatjaf
25a683e9c8
oembed initial work.
2023-09-23 15:43:06 -03:00
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
Daniele Tonon
8ab0cfca8c
Update last notes design + add npub to relays list
2023-09-20 00:50:52 +02:00
Daniele Tonon
616242ac3b
Shorten nip-119 entities in profiles/relays' last notes
2023-09-19 15:37:41 +02:00
fiatjaf
b0bda60577
improve and fix telegram instant preview for markdown articles.
2023-09-14 10:31:38 -03:00
fiatjaf
0754a46405
do not update archives immediately.
2023-09-13 21:13:24 -03:00