From 86b8ef03d66f15178a3f11b309039129e520801d Mon Sep 17 00:00:00 2001 From: Siddharth Singh Date: Sun, 30 Mar 2025 15:02:12 +0530 Subject: [PATCH] not sure how i managed to do that... --- packages/ditto/views/mastodon/notifications.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ditto/views/mastodon/notifications.ts b/packages/ditto/views/mastodon/notifications.ts index 7f71c1ea..16d1b52e 100644 --- a/packages/ditto/views/mastodon/notifications.ts +++ b/packages/ditto/views/mastodon/notifications.ts @@ -98,14 +98,14 @@ async function renderReaction(store: NStore, event: DittoEvent, opts: RenderNoti }; } -async function renderNameGrant(event: DittoEvent) { +function renderNameGrant(event: DittoEvent) { const r = event.tags.find(([name]) => name === 'r')?.[1]; const d = event.tags.find(([name]) => name === 'd')?.[1]; const name = r ?? d; - if (name) return; + if (!name) return; - const account = event.author ? await renderAccount(event.author) : await accountFromPubkey(event.pubkey); + const account = event.author ? renderAccount(event.author) : accountFromPubkey(event.pubkey); return { id: notificationId(event),