mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-19 04:40:53 +00:00
Fixed picture in picture compatibility error in WebUI when status is deleted
This commit is contained in:
parent
8b8c6726ce
commit
f003b7d9d8
|
@ -121,6 +121,13 @@ class Footer extends ImmutablePureComponent {
|
||||||
render () {
|
render () {
|
||||||
const { status, intl, withOpenButton } = this.props;
|
const { status, intl, withOpenButton } = this.props;
|
||||||
|
|
||||||
|
if (status == null) {
|
||||||
|
return (
|
||||||
|
<div className='picture-in-picture__footer'>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const publicStatus = ['public', 'unlisted'].includes(status.get('visibility'));
|
const publicStatus = ['public', 'unlisted'].includes(status.get('visibility'));
|
||||||
const reblogPrivate = status.getIn(['account', 'id']) === me && status.get('visibility') === 'private';
|
const reblogPrivate = status.getIn(['account', 'id']) === me && status.get('visibility') === 'private';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue