Fix chat zap for hosted streams

This commit is contained in:
2023-07-05 13:38:54 +01:00
parent b89c8db656
commit 672f1dd077
9 changed files with 442 additions and 438 deletions

View File

@ -51,4 +51,8 @@ export function eventLink(ev: NostrEvent) {
ev.pubkey
);
return `/${naddr}`;
}
export function getHost(ev?: NostrEvent) {
return ev?.tags.find(a => a[0] === "p" && a[3] === "host")?.[1] ?? ev?.pubkey ?? "";
}