Skip to main content

reposted

Function reposted 

Source
pub fn reposted(event: &Event, shown: &[Kind]) -> Option<Reposted>
Expand description

What the repost event passes on (NIP-18), if that is of one of the kinds shown: the note its e tag names, or else the one it carries. None for an event that is no repost, for one that names and carries nothing, and for one of something of another kind.

A repost carries what it reposts as text, which anybody can write: it is taken for the note only if it is signed as that note’s author signed it, and is the note the repost names. Otherwise the note is looked for by what it is named by.