diff options
| author | polwex <polwex@sortug.com> | 2025-11-19 05:47:30 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-11-19 05:47:30 +0700 |
| commit | 74d84cb2f22600b6246343e9ea606cf0db7517f0 (patch) | |
| tree | 0d68285c8e74e6543645e17ab2751d543c1ff9a6 /gui/src/components/post/wrappers/Nostr.tsx | |
| parent | e6e657be3a3b1dae426b46f3bc16f9a5cf4861c2 (diff) | |
Big GUI improvements on Nostr rendering and fetchingpolwex/iris
Diffstat (limited to 'gui/src/components/post/wrappers/Nostr.tsx')
| -rw-r--r-- | gui/src/components/post/wrappers/Nostr.tsx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gui/src/components/post/wrappers/Nostr.tsx b/gui/src/components/post/wrappers/Nostr.tsx index 2782fb8..7e96354 100644 --- a/gui/src/components/post/wrappers/Nostr.tsx +++ b/gui/src/components/post/wrappers/Nostr.tsx @@ -1,4 +1,4 @@ -import type { NostrMetadata, NostrPost } from "@/types/nostrill"; +import type { NostrPost } from "@/types/nostrill"; import Post from "../Post"; import useLocalState from "@/state/state"; @@ -7,9 +7,15 @@ function NostrPost({ data }: { data: NostrPost }) { const { profiles } = useLocalState((s) => ({ profiles: s.profiles })); const profile = profiles.get(data.event.pubkey); - return <Post poast={data.post} profile={profile} />; + return ( + <Post + user={{ urbit: data.post.author }} + poast={data.post} + profile={profile} + /> + ); } -export function NostrSnippet({ eventId, pubkey, relay }: NostrMetadata) { - return <div>wtf</div>; +export function NostrSnippet({ eventId, pubkey, relay, post }: NostrPost) { + return <Post user={{ nostr: pubkey }} poast={post} />; } |
