diff --git a/client/src/components/Modals/TextModal.tsx b/client/src/components/Modals/TextModal.tsx index 3fe93dd..3acdead 100644 --- a/client/src/components/Modals/TextModal.tsx +++ b/client/src/components/Modals/TextModal.tsx @@ -52,7 +52,9 @@ const ContentPreview = ({ key, comment }: { key: string, comment: string }) => { )} {quoteEvents[0] && quoteEvents.length > 0 && ( - + + + )} ); diff --git a/client/src/components/PostCard/CardContainer.tsx b/client/src/components/PostCard/CardContainer.tsx index cc0467b..9c5e68e 100644 --- a/client/src/components/PostCard/CardContainer.tsx +++ b/client/src/components/PostCard/CardContainer.tsx @@ -3,7 +3,7 @@ import { PropsWithChildren } from 'react'; export default function CardContainer({ children }: PropsWithChildren) { return (
-
{children}
+
{children}
); } \ No newline at end of file diff --git a/client/src/components/Thread/ReplyCard.tsx b/client/src/components/Thread/ReplyCard.tsx index 33e3b3e..e1625e1 100644 --- a/client/src/components/Thread/ReplyCard.tsx +++ b/client/src/components/Thread/ReplyCard.tsx @@ -101,7 +101,10 @@ const ReplyCard = ({ event, metadata, replyCount, repliedTo }: { event: Event, m
Reply to: {uniqBy(repliedTo, 'pubkey').map((event, index) => ( + <> +
+ ))}
diff --git a/client/src/utils/subscriptions.ts b/client/src/utils/subscriptions.ts index d36f053..345d93b 100644 --- a/client/src/utils/subscriptions.ts +++ b/client/src/utils/subscriptions.ts @@ -202,4 +202,21 @@ export const subNoteOnce = ( }); pubkeys.clear(); }, 2000); +}; + +export const subPubkeysMetadata = ( + pubkeys: string[], + onEvent: SubCallback, +) => { + unsubAll(); + // get metadata + sub({ + cb: onEvent, + filter: { + authors: pubkeys, + kinds: [0], + limit: pubkeys.length, + }, + unsub: true, + }); }; \ No newline at end of file