fix: show hosted streams on profile
This commit is contained in:
@ -21,6 +21,17 @@ export function useProfile(link: NostrLink, leaveOpen = false) {
|
|||||||
.withFilter()
|
.withFilter()
|
||||||
.kinds([LIVE_STREAM])
|
.kinds([LIVE_STREAM])
|
||||||
.authors([link.id]);
|
.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;
|
return b;
|
||||||
}, [link, leaveOpen]);
|
}, [link, leaveOpen]);
|
||||||
|
|
||||||
@ -57,7 +68,7 @@ export function useProfile(link: NostrLink, leaveOpen = false) {
|
|||||||
);
|
);
|
||||||
const zaps = (zapsData ?? [])
|
const zaps = (zapsData ?? [])
|
||||||
.map((ev) => parseZap(ev, System.ProfileLoader.Cache))
|
.map((ev) => parseZap(ev, System.ProfileLoader.Cache))
|
||||||
.filter((z) => z && z.valid);
|
.filter((z) => z && z.valid && z.receiver === link.id);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
streams,
|
streams,
|
||||||
|
Reference in New Issue
Block a user