|
|
|
@ -103,13 +103,6 @@ export default class PublicTimeline extends React.PureComponent { |
|
|
|
|
return !(location.state && location.state.mastodonModalOpen) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
handleSettingChanged = (key, checked) => { |
|
|
|
|
const { columnId } = this.props; |
|
|
|
|
if (!columnId && key[0] === 'other' && key[1] === 'onlyMedia') { |
|
|
|
|
this.context.router.history.replace(`/timelines/public${checked ? '/media' : ''}`); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
|
const { intl, columnId, hasUnread, multiColumn, onlyMedia } = this.props; |
|
|
|
|
const pinned = !!columnId; |
|
|
|
@ -126,7 +119,7 @@ export default class PublicTimeline extends React.PureComponent { |
|
|
|
|
pinned={pinned} |
|
|
|
|
multiColumn={multiColumn} |
|
|
|
|
> |
|
|
|
|
<ColumnSettingsContainer onChange={this.handleSettingChanged} columnId={columnId} /> |
|
|
|
|
<ColumnSettingsContainer columnId={columnId} /> |
|
|
|
|
</ColumnHeader> |
|
|
|
|
|
|
|
|
|
<StatusListContainer |
|
|
|
|