renderReport: whoops, event.author -> event.reported_account
This commit is contained in:
parent
8530749192
commit
c7e8beebc6
|
@ -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),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue