fiatjaf
bccd22654c
ensure metadata is never nil again.
2023-11-22 11:45:38 -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
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
Daniele Tonon
8c591b72f4
Fix twitter:image for kinds 1063 and 30311
2023-11-08 23:16:01 +01: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
Daniele Tonon
96da7ab72c
Fix and improve getParentNevent()
2023-11-07 17:44:28 +01:00
Daniele Tonon
12c1bebf99
Add support for live chat message, kind:1311
2023-11-07 15:13:05 +01:00
fiatjaf
9f0b3fa4af
use naddr as code in client urls when param-replaceable and fix relay filtering for nip19.
...
fixes https://github.com/fiatjaf/njump/issues/14
2023-11-07 09:14:45 -03:00
Daniele Tonon
b5a4cfdfdb
Add support for live events, kind:30311
2023-11-06 23:28:20 +01:00
fiatjaf
274a6da19b
improve error messages and fix wrong error being returned.
2023-11-06 11:17:45 -03:00
fiatjaf
604be14407
modularizing opengraph headers and fixing a bunch of small things on there.
2023-11-06 11:07:20 -03:00
fiatjaf
e477d38e66
fixing implementation of previous commit in multiple places.
2023-11-05 14:39:10 -03:00
fiatjaf
2cacdc84e7
always open details for unknown (Other) events.
2023-11-05 07:58:28 -03:00
fiatjaf
d05440b98f
update go-nostr.
2023-11-04 16:09:00 -03:00
fiatjaf
86813565dd
do not show blank fields and separators in profile.
2023-11-03 22:20:41 -03:00
fiatjaf
954bebaeef
fix profile metadata on grabData().
2023-10-31 20:59:02 -03:00
fiatjaf
f9b4f03999
expose Kind1063Metadata fields and use that struct directly in templates.
2023-10-31 10:57:34 -03:00
fiatjaf
be3fad5bec
fix kind description on grabData().
2023-10-31 10:31:13 -03:00
fiatjaf
4639c2dbcf
simplify struct building on grabData()
2023-10-30 22:33:47 -03:00
fiatjaf
2fecd4e5f2
turn kind1063Metadata into a struct.
2023-10-30 22:28:33 -03:00
Daniele Tonon
ad91d3b96b
Add basic support for NIP-94 - File Metadata
2023-10-30 23:29:23 +01:00
fiatjaf
1c36a379fd
use naked (no relay hints) nip19 codes for canonical URLs and move them to head_common.
2023-10-28 13:17:53 -03:00
fiatjaf
8111e16960
abstract querying of author and relay last notes, and caching.
2023-10-26 22:30:20 -03:00
fiatjaf
92d8b6a6d1
use event relays when searching for pubkey metadata, compute nprofile.
2023-10-26 08:17:27 -03:00
fiatjaf
c96cc28c33
fix ParentLink that was showing up all the time when it shouldn't.
2023-10-22 23:36:18 -03:00
fiatjaf
2fe1057ef6
profile sitemap.
2023-10-21 14:20:58 -03:00
fiatjaf
ebeb9820d8
move redirectors, renderRelay and renderProfile out of render.
2023-10-21 14:10:08 -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
6aa1440b05
tmpl migration: note.html
2023-10-21 07:45:44 -03:00
fiatjaf
bc947e29d8
mass tmpl migration: partials, other.html and archive.html.
2023-10-21 00:47:19 -03:00
fiatjaf
95d348ef07
revert "strip image and video urls from text if they are at the end of content."
...
this reverts commit 93c40648c0 .
we need saner code before we can do these kinds of tweaks, I don't know if this would break something.
2023-10-17 07:10:57 -03:00
fiatjaf
93c40648c0
strip image and video urls from text if they are at the end of content.
2023-10-16 07:54:23 -03:00
fiatjaf
8f007bbe04
fix image and url matching by reusing the utils.go regexes.
2023-10-13 21:56:14 -03:00
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
b6a95e46db
fix unwanted chaining of canceled contexts.
2023-10-03 15:40:26 -03:00
Daniele Tonon
a85c5fa479
Remove exluded relays from "Seen on" list
2023-10-03 16:23:38 +02:00
fiatjaf
4f3141f66a
fetch seenOn relays for individual events.
2023-10-02 15:17:39 -03:00
fiatjaf
9901c47e46
support .mov videos on normal notes.
2023-10-01 15:56:35 -03:00
fiatjaf
208506ff16
move grabData() into a separate file.
2023-09-24 15:39:03 -03:00