diff --git a/src/features/Posts/Components/Comments/CommentsSection/comment.server.js b/src/features/Posts/Components/Comments/CommentsSection/comment.server.js deleted file mode 100644 index 1a75af3..0000000 --- a/src/features/Posts/Components/Comments/CommentsSection/comment.server.js +++ /dev/null @@ -1,15 +0,0 @@ - -export async function mapPubkeysToUsers(pubkeys) { - const users = await Promise.all(pubkeys.map(pubkey => - // prisma.user.findUnique({ where: { nostrPubkey: pubkey } }) - ({ - id: 1, - name: "Mtg", - avatar: 'https://i.pravatar.cc/150?img=1', - pubkey, - }) - )) - - - return users.reduce((acc, user) => ({ ...acc, [user.pubkey]: { ...user } }), {}) -} \ No newline at end of file