forked from Kieran/zap.stream
fix: show hosted streams on profile
This commit is contained in:
parent
4a9fed34f0
commit
6661c7cb32
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user