Merge branch 'detailed-status-menu' into 'develop'

Don't show menu items requiring auth when not authenticated for detailed statuses

See merge request soapbox-pub/soapbox-fe!907
strip-front-mentions
Alex Gleason 2021-12-11 21:03:29 +00:00
commit 01cd832680
1 zmienionych plików z 108 dodań i 106 usunięć

Wyświetl plik

@ -337,6 +337,7 @@ class ActionBar extends React.PureComponent {
}); });
} }
if (me) {
menu.push(null); menu.push(null);
if (ownAccount) { if (ownAccount) {
@ -456,6 +457,7 @@ class ActionBar extends React.PureComponent {
}); });
} }
} }
}
const canShare = ('share' in navigator) && status.get('visibility') === 'public'; const canShare = ('share' in navigator) && status.get('visibility') === 'public';