Fix Public TL not indicating new toots when `onlyRemote` or `allowLocalOnly` is enabled (#2336)

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
lolsob-rspec
Plastikmensch 2023-07-29 16:45:37 +02:00 committed by GitHub
parent d7d3466b9a
commit 7186b6ce0f
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ const mapStateToProps = (state, { columnId }) => {
const onlyRemote = (columnId && index >= 0) ? columns.get(index).getIn(['params', 'other', 'onlyRemote']) : state.getIn(['settings', 'public', 'other', 'onlyRemote']);
const allowLocalOnly = (columnId && index >= 0) ? columns.get(index).getIn(['params', 'other', 'allowLocalOnly']) : state.getIn(['settings', 'public', 'other', 'allowLocalOnly']);
const regex = (columnId && index >= 0) ? columns.get(index).getIn(['params', 'regex', 'body']) : state.getIn(['settings', 'public', 'regex', 'body']);
const timelineState = state.getIn(['timelines', `public${onlyMedia ? ':media' : ''}`]);
const timelineState = state.getIn(['timelines', `public${onlyRemote ? ':remote' : allowLocalOnly ? ':allow_local_only' : ''}${onlyMedia ? ':media' : ''}`]);
return {
hasUnread: !!timelineState && timelineState.get('unread') > 0,