Skip to content

Commit

Permalink
Fix public TL not indicating new toots when onlyRemote is enabled (m…
Browse files Browse the repository at this point in the history
…astodon#26247)

Signed-off-by: Plastikmensch <[email protected]>
  • Loading branch information
Plastikmensch authored Jul 29, 2023
1 parent 74903af commit 4d3a129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/features/public_timeline/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const mapStateToProps = (state, { columnId }) => {
const index = columns.findIndex(c => c.get('uuid') === uuid);
const onlyMedia = (columnId && index >= 0) ? columns.get(index).getIn(['params', 'other', 'onlyMedia']) : state.getIn(['settings', 'public', 'other', 'onlyMedia']);
const onlyRemote = (columnId && index >= 0) ? columns.get(index).getIn(['params', 'other', 'onlyRemote']) : state.getIn(['settings', 'public', 'other', 'onlyRemote']);
const timelineState = state.getIn(['timelines', `public${onlyMedia ? ':media' : ''}`]);
const timelineState = state.getIn(['timelines', `public${onlyRemote ? ':remote' : ''}${onlyMedia ? ':media' : ''}`]);

return {
hasUnread: !!timelineState && timelineState.get('unread') > 0,
Expand Down

0 comments on commit 4d3a129

Please sign in to comment.