Fixed picture in picture compatibility error in WebUI when status is deleted

pull/15701/head
Hidenori Sekine 2021-02-10 07:29:42 +00:00
parent 8b8c6726ce
commit f003b7d9d8
1 changed files with 7 additions and 0 deletions

View File

@ -121,6 +121,13 @@ class Footer extends ImmutablePureComponent {
render () {
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 reblogPrivate = status.getIn(['account', 'id']) === me && status.get('visibility') === 'private';