summaryrefslogtreecommitdiff
path: root/gui/src/components/post/wrappers/Nostr.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/components/post/wrappers/Nostr.tsx')
-rw-r--r--gui/src/components/post/wrappers/Nostr.tsx14
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} />;
}