aboutsummaryrefslogtreecommitdiffstats
path: root/feed
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-13 05:47:23 +0000
committerAdam Soltys <[email protected]>2026-10-13 05:47:23 +0000
commit4e1cd666a06c4ee852586986d0301278d680a614 (patch)
tree73c8081423bc6e53e1f2d205e62d16d834fc8d90 /feed
parenta6ed8151a08f540a68fd5362884e4f9b888bca69 (diff)
downloadcoinosv3-4e1cd666a06c4ee852586986d0301278d680a614.tar.gz
coinosv3-4e1cd666a06c4ee852586986d0301278d680a614.zip
Feed: NIP-71 video events are posts, with their clips. Adam asked whether a feed could ask for just the posts with videos; for notes it can't (a relay filters by kind, author, time and one-letter tags, never by what a post says, and imeta isn't indexed), but NIP-71 gives clips kinds of their own. Of the 900 people he follows, 58 have posted 665 of them (191 kind 21, 33 kind 22, 170 kind 34235, 271 kind 34236 — divine.video's), 12 in the last fortnight next to 220 notes linking a video. Those kinds are now asked for with the notes (FEED_KINDS: feeds, profiles, topics, live), and drawn as posts: the title, the words, and the clip from its imeta — of the versions on offer, the one nearest 1080 on its short side (not the 4K original), never an HLS playlist, its url tag as a fallback — with the imeta's poster and size. A file whose name doesn't say it's a clip (divine.video's have no extension) plays when an imeta types it video/* or it's a video event's file, in a note as much as a video event. An addressable clip (34235/34236) shows once, not once per version. The clips are in the pager and the media grid's Videos (their captions: title and words, no file link); replies are NIP-22 comments, which threads already fetch. tools/video-events-test.js (the kinds asked for; a kind 21 as a post with its 720p version and poster, not "kind 21"; a 34236 with an extensionless file and its older version once; a note's imeta-typed file; the pager over all three with the caption).
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KPw21NEpWeTGu6swVASmBt
Diffstat (limited to 'feed')
0 files changed, 0 insertions, 0 deletions