Use getAncestorTags in router

This commit is contained in:
Jon Staab
2025-06-16 08:40:35 -07:00
parent 09f6db7eae
commit 49fecd2291
2 changed files with 6 additions and 6 deletions
+2 -5
View File
@@ -18,19 +18,17 @@ import {
isOnionUrl,
isLocalUrl,
isShareableRelayUrl,
COMMENT,
PROFILE,
RELAYS,
INBOX_RELAYS,
FOLLOWS,
WRAP,
getReplyTags,
getCommentTags,
getPubkeyTagValues,
normalizeRelayUrl,
TrustedEvent,
Filter,
readList,
getAncestorTags,
asDecryptedEvent,
getRelaysFromList,
RelayMode,
@@ -215,8 +213,7 @@ export class Router {
}
EventAncestors = (event: TrustedEvent, type: "mentions" | "replies" | "roots") => {
const ancestorTags =
event.kind === COMMENT ? getCommentTags(event.tags) : getReplyTags(event.tags)
const ancestorTags = getAncestorTags(event)
const tags: string[][] = (ancestorTags as any)[type] || []