From 875b678948c00433fe3365bfd521aa919c7deba4 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 26 May 2024 12:55:01 -0500 Subject: [PATCH] Fix renderReblog on other Mastodon apps --- src/views/mastodon/statuses.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/views/mastodon/statuses.ts b/src/views/mastodon/statuses.ts index 7d83cac..fe03857 100644 --- a/src/views/mastodon/statuses.ts +++ b/src/views/mastodon/statuses.ts @@ -131,18 +131,13 @@ async function renderStatus(event: DittoEvent, opts: RenderStatusOpts): Promise< async function renderReblog(event: DittoEvent, opts: RenderStatusOpts) { const { viewerPubkey } = opts; - - const repostId = event.tags.find(([name]) => name === 'e')?.[1]; - if (!repostId) return; - if (!event.repost) return; + const status = await renderStatus(event, {}); // omit viewerPubkey intentionally const reblog = await renderStatus(event.repost, { viewerPubkey }); return { - id: event.id, - account: event.author ? await renderAccount(event.author) : await accountFromPubkey(event.pubkey), - reblogged: true, + ...status, reblog, }; }