diff --git a/src/views/mastodon/admin-accounts.ts b/src/views/mastodon/admin-accounts.ts index 90723f4..b344608 100644 --- a/src/views/mastodon/admin-accounts.ts +++ b/src/views/mastodon/admin-accounts.ts @@ -7,7 +7,7 @@ import { accountFromPubkey, renderAccount } from '@/views/mastodon/accounts.ts'; async function renderAdminAccount(event: DittoEvent) { let account; - if (event.kind === 0 && event.user) { + if (event && event.kind === 0 && event.user) { account = await renderAccount(event); } else { const d = event.tags.find(([name]) => name === 'd')?.[1]!;