refactor: rename isTextRepost to tagFilterOfTextRepost

This commit is contained in:
kPherox
2023-02-16 23:11:29 +09:00
parent d911dc8da3
commit 188b599e85
5 changed files with 10 additions and 10 deletions

View File

@ -192,7 +192,7 @@ export function getNewest(rawNotes: TaggedRawEvent[]) {
}
}
export function isTextRepost(note: TaggedRawEvent, id?: u256): (tag: string[], i: number) => boolean {
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);
}