Commit Graph

439 Commits

Author SHA1 Message Date
fiatjaf
6318910539 update gomarkdown library to fix nil pointer bug. 2023-11-22 22:04:57 -03:00
fiatjaf
bccd22654c ensure metadata is never nil again. 2023-11-22 11:45:38 -03:00
fiatjaf
3565a9d228 background and foreground colors. 2023-11-19 18:35:41 -03:00
fiatjaf
1448d4d53c replace image drawing library. 2023-11-19 13:10:08 -03:00
Daniele Tonon
ac2bf854df Switch from RSS to Atom 2023-11-18 13:37:34 +01:00
fiatjaf
1293cb2f5b change BLOCK to "|" at least until I can figure out how to render better images. 2023-11-17 22:16:25 -03:00
fiatjaf
f269fcbfe9 fallback to empty metadata when not found. 2023-11-17 13:11:26 -03:00
Daniele Tonon
8f687f0dc1 Remove the parent inline rendering from RSS 2023-11-17 14:36:57 +01:00
Daniele Tonon
84edf714f7 Render inline parent note and mentions in RSS 2023-11-17 10:05:14 +01:00
Daniele Tonon
92ee975060 Add RSS <link> hints to profiles and relays 2023-11-17 09:49:23 +01:00
fiatjaf
a1a84c4b81 fix content-type for profile page: it's html. 2023-11-16 22:23:52 -03:00
Daniele Tonon
e4c61edde5 Add reply reference in RSS 2023-11-16 23:43:14 +01:00
Daniele Tonon
b8345f9176 Add RSS for profiles and relays 2023-11-16 22:58:40 +01:00
fiatjaf
fb66025667 use nevent/nprofile codes with relay hints on client links. 2023-11-16 13:02:19 -03:00
Daniele Tonon
9f6726023c Manage not existen or inactive relay 2023-11-16 15:04:57 +01:00
fiatjaf
2814460acc update nostr-sdk to solve metadata parsing missing pubkey. 2023-11-16 10:22:52 -03:00
fiatjaf
ff286a1715 a little more work on tests. 2023-11-15 14:45:06 -03:00
fiatjaf
6b810d5ed1 fix quoted videos for telegram instant view too, like images. 2023-11-15 14:43:58 -03:00
fiatjaf
3732277241 render as telegram instant view in more cases. 2023-11-15 14:43:29 -03:00
fiatjaf
1eb7a0ca95 link to author profile in telegram instant view. 2023-11-15 14:21:54 -03:00
fiatjaf
550739d8b1 have a link to the parent in telegram instant view. 2023-11-15 14:08:02 -03:00
fiatjaf
f499ccde8a use .display_name on "fulano on Nostr:" headings when .name is not available. 2023-11-15 10:10:17 -03:00
fiatjaf
929307f3ba move markdown stuff to its own file and simplify code a bit. 2023-11-12 18:11:14 -03:00
fiatjaf
e89f491166 dir="auto" on all free text so it's displayed better. 2023-11-12 15:48:06 -03:00
fiatjaf
2350aa05a1 always use text-image on twitter.
nostr:note1j8kk28f6czmgfr2cxw4xrup2dl9ewxhwwqgw04k7wrg4psxa9tkq4h0emk
2023-11-11 22:02:15 -03:00
fiatjaf
464f043d63 reverse sort order: newer stuff at the top. 2023-11-11 07:45:23 -03:00
fiatjaf
3fce26e0a0 use name= everywhere for twitter og tags and make tests pass. 2023-11-11 07:43:51 -03:00
Daniele Tonon
ab07ca3692 Add home link to the error page 2023-11-11 11:12:36 +01:00
Daniele Tonon
9fef9e87eb Improve error messages 2023-11-11 11:01:17 +01:00
Daniele Tonon
a9e0c101fb Set 404 status for errors 2023-11-11 08:34:39 +01:00
Daniele Tonon
6ac7fa2f09 Review error message layout 2023-11-10 23:20:11 +01:00
Daniele Tonon
4b3c8c8592 Update error messages 2023-11-10 23:19:51 +01:00
Daniele Tonon
fa61e7394e Manage /<hex-id> paths
Fix 211628b6
2023-11-10 23:14:00 +01:00
Daniele Tonon
bf182d1a68 Show basic errors in a nice format 2023-11-10 22:54:48 +01:00
fiatjaf
0b5766fdfa a humble test framework for opengraph stuff. 2023-11-09 10:36:00 -03:00
fiatjaf
dee60d4721 prevent telegram instant view when we could fit stuff in the big image card. 2023-11-08 19:30:43 -03:00
Daniele Tonon
8c591b72f4 Fix twitter:image for kinds 1063 and 30311 2023-11-08 23:16:01 +01:00
Daniele Tonon
76f01721fc Review design for linked entities 2023-11-08 23:07:03 +01:00
Daniele Tonon
800bc56796 Review design for mentioned notes 2023-11-08 23:07:03 +01:00
Daniele Tonon
fbf94018d1 Set prose links to base font-weight 2023-11-08 23:07:03 +01:00
Daniele Tonon
96c0459148 Fix main column width 2023-11-08 23:07:03 +01:00
fiatjaf
2237c3e73a if a note is mostly about an image, render that image as a big image and remove the URL. 2023-11-08 18:52:37 -03:00
fiatjaf
08b07227eb fix getParentNevent()
this would panic if we didn\'t have any relays in data.relays for the child.
but also I think it wasn't a good idea to give spurious hints in the nevent.
either we have good hints or we don't.
2023-11-08 18:51:25 -03:00
fiatjaf
804a1f5253 fix slices.SortFunc() -- did the API change? 2023-11-08 17:43:16 -03:00
fiatjaf
f1188a2112 fix typo in function name introduced by search-and-replace procedure. 2023-11-08 17:42:32 -03:00
fiatjaf
0b6a4838c5 getRelay() -> getRandomRelay() 2023-11-07 17:03:44 -03:00
fiatjaf
06700a8ac5 update eventstore. 2023-11-07 17:03:27 -03:00
fiatjaf
9ee3b242c0 mention hints in failed to find error. 2023-11-07 16:57:56 -03:00
Daniele Tonon
96da7ab72c Fix and improve getParentNevent() 2023-11-07 17:44:28 +01:00
Daniele Tonon
e5534818e1 Add supported kinds to the README 2023-11-07 15:26:28 +01:00