pl-fe: finalize migration?

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-01-03 22:19:24 +01:00
parent 09478c3384
commit a81f727fb6
16 changed files with 126 additions and 295 deletions

View File

@ -37,7 +37,7 @@ const messages = defineMessages({
});
const StatusPage: React.FC = () => {
const { statusId } = statusRoute.useParams();
const { username, statusId } = statusRoute.useParams();
const dispatch = useAppDispatch();
const intl = useIntl();
@ -102,6 +102,12 @@ const StatusPage: React.FC = () => {
);
}
if (username && status && username !== status.account.acct) {
return (
<Navigate to='/@{$username}/posts/$statusId' params={{ username: status.account.acct, statusId: status.id }} replace />
);
}
if (!status && isLoaded) {
return (
<MissingIndicator />