refactor: rename isTextRepost
to tagFilterOfTextRepost
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user