renderReport: whoops, event.author -> event.reported_account

This commit is contained in:
Alex Gleason 2024-05-08 15:06:33 -05:00
parent 8530749192
commit c7e8beebc6
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ async function renderReport(event: DittoEvent) {
created_at: nostrDate(event.created_at).toISOString(), created_at: nostrDate(event.created_at).toISOString(),
status_ids: statusIds, status_ids: statusIds,
rules_ids: null, 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),
}; };
} }