Update router methods

This commit is contained in:
Jon Staab
2024-11-12 13:32:54 -08:00
parent d5412811b2
commit 952ebd38bf
5 changed files with 31 additions and 22 deletions
+3 -3
View File
@@ -65,21 +65,21 @@ export const getEditorTags = (editor: Editor) => {
({attrs: {kind, pubkey, identifier, relays = []}}: any) => {
const address = new Address(kind, pubkey, identifier).toString()
return ["q", address, ctx.app.router.fromRelays(relays).getUrl(), pubkey]
return ["q", address, ctx.app.router.FromRelays(relays).getUrl(), pubkey]
},
)
const neventTags = findNodes("nevent", json).map(({attrs: {id, author, relays = []}}: any) => [
"q",
id,
ctx.app.router.fromRelays(relays).getUrl(),
ctx.app.router.FromRelays(relays).getUrl(),
author || "",
])
const mentionTags = findNodes("nprofile", json).map(({attrs: {pubkey, relays = []}}: any) => [
"p",
pubkey,
ctx.app.router.fromRelays(relays).getUrl(),
ctx.app.router.FromRelays(relays).getUrl(),
"",
])