Consider shown and pending status in explore prompt calculation (#27466)
Co-authored-by: Brian Campbell <brcampbell@beta.team>
This commit is contained in:
parent
10df97c542
commit
f76e5111f0
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ const getHomeFeedSpeed = createSelector([
|
||||||
state => state.getIn(['timelines', 'home', 'pendingItems'], ImmutableList()),
|
state => state.getIn(['timelines', 'home', 'pendingItems'], ImmutableList()),
|
||||||
state => state.get('statuses'),
|
state => state.get('statuses'),
|
||||||
], (statusIds, pendingStatusIds, statusMap) => {
|
], (statusIds, pendingStatusIds, statusMap) => {
|
||||||
const recentStatusIds = pendingStatusIds.size > 0 ? pendingStatusIds : statusIds;
|
const recentStatusIds = pendingStatusIds.concat(statusIds);
|
||||||
const statuses = recentStatusIds.filter(id => id !== null).map(id => statusMap.get(id)).filter(status => status?.get('account') !== me).take(20);
|
const statuses = recentStatusIds.filter(id => id !== null).map(id => statusMap.get(id)).filter(status => status?.get('account') !== me).take(20);
|
||||||
|
|
||||||
if (statuses.isEmpty()) {
|
if (statuses.isEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue