Commit Graph

238 Commits

Author SHA1 Message Date
fiatjaf
fe646af02c encode displayed nevent with seen-on relays.
fixes https://github.com/fiatjaf/njump/issues/7
2023-10-10 13:52:16 -03:00
fiatjaf
c7b7351d5b replace "wrote" with "on Nostr" 2023-10-10 11:35:28 -03:00
fiatjaf
ada25605f9 add nostter and nosotros, remove agora. 2023-10-10 11:30:18 -03:00
fiatjaf
121faa0798 trim twitter images so they fit better in the new twitter preview image boxes. 2023-10-10 09:36:08 -03:00
fiatjaf
75189d8bec querystring helper for debugging image generation. 2023-10-10 09:35:47 -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
b6a95e46db fix unwanted chaining of canceled contexts. 2023-10-03 15:40:26 -03:00
fiatjaf
f7f231dfc6 rearrange relays and add public relaying.io 2023-10-03 15:39:45 -03:00
fiatjaf
7088986f21 strip querystring from relays. 2023-10-03 15:33:35 -03:00
Daniele Tonon
6e9bfc7e62 Review the positioning and design of "See on" 2023-10-03 16:24:20 +02:00
Daniele Tonon
a85c5fa479 Remove exluded relays from "Seen on" list 2023-10-03 16:23:38 +02:00
fiatjaf
28e926b21d stop redirecting to clients automatically. 2023-10-02 15:58:39 -03:00
fiatjaf
d8ccd2a342 fix title for non-twitter previews. 2023-10-02 15:23:56 -03:00
fiatjaf
9904686055 display seenOn relays in event pages with clickable links. 2023-10-02 15:21:41 -03:00
fiatjaf
4f3141f66a fetch seenOn relays for individual events. 2023-10-02 15:17:39 -03:00
fiatjaf
08c16d371c update go-nostr to get relay information from pool. 2023-10-02 09:24:07 -03:00
fiatjaf
28ddb1cefd instead of arrows in quotes, use a nicer unicode block character. 2023-10-01 16:11:17 -03:00
fiatjaf
3439864780 fix rendering quotes. 2023-10-01 16:02:33 -03:00
fiatjaf
c20e1db65c move stuff from text.go to render_image.go 2023-10-01 15:57:47 -03:00
fiatjaf
a0a528d073 rename generate => renderImage 2023-10-01 15:56:38 -03:00
fiatjaf
9901c47e46 support .mov videos on normal notes. 2023-10-01 15:56:35 -03:00
Daniele Tonon
abd8102c78 Use NotoSansJP to render OG image 2023-10-01 18:12:23 +02:00
fiatjaf
fd08783edd discriminate iframely. 2023-09-24 15:39:12 -03:00
fiatjaf
208506ff16 move grabData() into a separate file. 2023-09-24 15:39:03 -03:00
fiatjaf
6ce339e242 cors everywhere because why not. 2023-09-24 15:38:45 -03:00
fiatjaf
475b614653 oembed discovery. 2023-09-24 14:12:10 -03:00
fiatjaf
892065339d fix grabData() bug with npub codes being trimmed. 2023-09-24 13:58:03 -03:00
fiatjaf
a082efc45d delete explicit mentions to njump.me and use s.CanonicalHost 2023-09-24 13:57:42 -03:00
fiatjaf
4e89a2125e somewhat-working oembed support. 2023-09-23 22:16:57 -03:00
fiatjaf
9a5f20bad2 abstract grabData() function in render.go 2023-09-23 22:16:36 -03:00
fiatjaf
25a683e9c8 oembed initial work. 2023-09-23 15:43:06 -03:00
Melvin Carvalho
14d4b961b8 Add MIT License 2023-09-23 12:28:33 -03:00
fiatjaf
0a9b9ce1d3 use content with names replaced in as the title. 2023-09-23 12:24:03 -03:00
fiatjaf
06cbbff096 replace nostr user references with names in meta description. 2023-09-22 18:03:59 -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
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
0ffb7018d0 Hide display_name if equal to name 2023-09-20 01:22:16 +02: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
Daniele Tonon
89ba317ede Replace npub/nprofile reference with usename on web pages 2023-09-19 12:29:33 +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
Daniele Tonon
92574248db Add client name to href dataset 2023-09-17 21:19:08 +02:00
Daniele Tonon
730485613c Fix nip-05 syntax in the home 2023-09-15 16:17:58 +02:00
fiatjaf
1c4a9ba06d show correct author name in telegram instant view for longform articles. 2023-09-14 15:00:35 -03:00
fiatjaf
5361e9cc7a mercilessly break words in monospace event detail. 2023-09-14 10:37:32 -03:00
fiatjaf
2fce62dc30 apply prettier to scss and css. 2023-09-14 10:35:52 -03:00