From c7e8beebc66fcf9f5ea2cfe6aeb7ec79ebd86960 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 8 May 2024 15:06:33 -0500 Subject: [PATCH] renderReport: whoops, event.author -> event.reported_account --- src/views/mastodon/reports.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/mastodon/reports.ts b/src/views/mastodon/reports.ts index 488f7b9..f4908de 100644 --- a/src/views/mastodon/reports.ts +++ b/src/views/mastodon/reports.ts @@ -22,7 +22,9 @@ async function renderReport(event: DittoEvent) { created_at: nostrDate(event.created_at).toISOString(), status_ids: statusIds, rules_ids: null, - target_account: event.author ? await renderAccount(event.author) : await accountFromPubkey(reportedPubkey), + target_account: event.reported_profile + ? await renderAccount(event.reported_profile) + : await accountFromPubkey(reportedPubkey), }; }