Fix chat zap for hosted streams
This commit is contained in:
@ -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 ?? "";
|
||||
}
|
Reference in New Issue
Block a user