nicolium: fix report page crash, also wtf

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-04-08 09:09:23 +00:00
parent a0a2a09855
commit 6446f25cd7
2 changed files with 6 additions and 1 deletions

View File

@@ -1476,7 +1476,7 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
});
}, []);
if (!status) {
if (!status || !status.account) {
return null;
}

View File

@@ -15,6 +15,11 @@ import { adminAccountSchema } from './account';
const adminReportSchema = v.pipe(
v.any(),
v.transform((report: any) => {
report.statuses = report.statuses?.map((status: any) => ({
...status,
account: (report.actor ? report.account : report.target_account)?.account || status.account,
}));
if (report.actor) {
/**
* Convert Pleroma report schema