guestExperience: add alternate user routes

environments/review-guest-alt-z0oxqo/deployments/272
Alex Gleason 2022-06-15 10:50:45 -05:00
rodzic f34a5b81f8
commit e03a22f88d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -609,7 +609,12 @@ const UI: React.FC = ({ children }) => {
const isProfileOrStatusPage = !!matchPath(
history.location.pathname,
['/@:username', '/@:username/posts/:statusId'],
[
'/@:username',
'/@:username/posts/:statusId',
'/users/:username',
'/users/:username/statuses/:statusId',
],
);
// Require login if Guest Experience is disabled and we're not trying