Merge pull request #314 from kphrx/feat/kind1-reposts

feat: render kind 1 reposts
This commit is contained in:
2023-02-18 23:01:28 +00:00
committed by GitHub
6 changed files with 48 additions and 7 deletions

View File

@ -191,3 +191,8 @@ export function getNewest(rawNotes: TaggedRawEvent[]) {
return notes[0];
}
}
export function tagFilterOfTextRepost(note: TaggedRawEvent, id?: u256): (tag: string[], i: number) => boolean {
return (tag, i) =>
tag[0] === "e" && tag[3] === "mention" && note.content === `#[${i}]` && (id ? tag[1] === id : true);
}