Serialize repost targets when available

This commit is contained in:
thePR0M3TH3AN committed 2025-11-03 14:35:43 -05:00
1 parent ceeabddf11
commit a59f214aeb
4 files changed
+151 -1

No files matched your search

+2
View File
@@ -12,6 +12,8 @@ that a `kind 1` text note is worth reading.
The `content` of a repost event is _the stringified JSON of the reposted note_. It MAY also be empty, but that is not recommended.
Reposts of [NIP-70](70.md)-protected events SHOULD always have an empty `content`.
bitvid follows this guidance by serializing the full source event payload (including non-kind-1 targets) whenever it can be fetched from a relay, and falls back to an empty `content` only when the original note is protected or otherwise unavailable.
The repost event MUST include an `e` tag with the `id` of the note that is
being reposted. That tag MUST include a relay URL as its third entry
to indicate where it can be fetched.