From 2aee2e6bf6facc883b1364af8f630ec88a962cfa Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Fri, 17 May 2024 09:45:19 -0300 Subject: [PATCH] fix(renderReblog): render account from pubkey if there is no kind 0 --- src/views/mastodon/statuses.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/views/mastodon/statuses.ts b/src/views/mastodon/statuses.ts index 776f0169..aefe258b 100644 --- a/src/views/mastodon/statuses.ts +++ b/src/views/mastodon/statuses.ts @@ -123,8 +123,6 @@ async function renderStatus(event: DittoEvent, opts: RenderStatusOpts): Promise< async function renderReblog(event: DittoEvent, opts: RenderStatusOpts) { const { viewerPubkey } = opts; - if (!event.author) return; - const repostId = event.tags.find(([name]) => name === 'e')?.[1]; if (!repostId) return; @@ -134,7 +132,7 @@ async function renderReblog(event: DittoEvent, opts: RenderStatusOpts) { return { id: event.id, - account: await renderAccount(event.author), + account: event.author ? await renderAccount(event.author) : await accountFromPubkey(event.pubkey), reblogged: true, reblog, };