diff --git a/packages/app/src/Feed/StatusFeed.ts b/packages/app/src/Feed/StatusFeed.ts index aee30054..b84a3c98 100644 --- a/packages/app/src/Feed/StatusFeed.ts +++ b/packages/app/src/Feed/StatusFeed.ts @@ -4,24 +4,25 @@ import { findTag } from "SnortUtils"; import { useMemo } from "react"; export function useStatusFeed(id?: string, leaveOpen = false) { - const sub = useMemo(() => { - if(!id) return null; + const sub = useMemo(() => { + if (!id) return null; - const rb = new RequestBuilder(`statud:${id}`); - rb.withOptions({leaveOpen}); - rb.withFilter() - .kinds([30315 as EventKind]) - .authors([id]); + const rb = new RequestBuilder(`statud:${id}`); + rb.withOptions({ leaveOpen }); + rb.withFilter() + .kinds([30315 as EventKind]) + .authors([id]); - return rb; - }, [id]); + return rb; + }, [id]); - const status = useRequestBuilder(NoteCollection, sub); + const status = useRequestBuilder(NoteCollection, sub); - const general = status.data?.find(a => findTag(a, "d") === "general"); - const music = status.data?.find(a => findTag(a, "d") === "music"); + const general = status.data?.find(a => findTag(a, "d") === "general"); + const music = status.data?.find(a => findTag(a, "d") === "music"); - return { - general, music - } -} \ No newline at end of file + return { + general, + music, + }; +} diff --git a/packages/app/src/Pages/ProfilePage.tsx b/packages/app/src/Pages/ProfilePage.tsx index 37716b78..45769a91 100644 --- a/packages/app/src/Pages/ProfilePage.tsx +++ b/packages/app/src/Pages/ProfilePage.tsx @@ -256,13 +256,19 @@ export default function ProfilePage() { const link = findTag(status.music, "r"); const cover = findTag(status.music, "cover"); const inner = () => { - return