pl-fe: finalize migration?
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user