fix: show hosted streams on profile

This commit is contained in:
Alejandro Gomez 2023-07-04 16:36:36 +02:00
parent 4a9fed34f0
commit 6661c7cb32
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -21,6 +21,17 @@ export function useProfile(link: NostrLink, leaveOpen = false) {
.withFilter()
.kinds([LIVE_STREAM])
.authors([link.id]);
const b2 = new RequestBuilder(`profile-host:${link.id.slice(0, 12)}`);
b2.withOptions({
leaveOpen,
})
.withFilter()
.kinds([LIVE_STREAM])
.tag("p", [link.id]);
b.add(b2);
return b;
}, [link, leaveOpen]);
@ -57,7 +68,7 @@ export function useProfile(link: NostrLink, leaveOpen = false) {
);
const zaps = (zapsData ?? [])
.map((ev) => parseZap(ev, System.ProfileLoader.Cache))
.filter((z) => z && z.valid);
.filter((z) => z && z.valid && z.receiver === link.id);
return {
streams,