mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-08 05:43:04 +00:00
Serialize repost targets when available
This commit is contained in:
1 parent
ceeabddf11
commit
a59f214aeb
4 files changed
+151
-1
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user