Skip to content

Commit

Permalink
[Glitch] Consider shown and pending status in explore prompt calculation
Browse files Browse the repository at this point in the history
Port f76e511 to glitch-soc

Co-authored-by: Brian Campbell <brcampbell@beta.team>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
  • Loading branch information
2 people authored and ClearlyClaire committed Oct 19, 2023
1 parent 41f58e9 commit 1a3248d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const getHomeFeedSpeed = createSelector([
state => state.getIn(['timelines', 'home', 'pendingItems'], ImmutableList()),
state => state.get('statuses'),
], (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);

if (statuses.isEmpty()) {
Expand Down

0 comments on commit 1a3248d

Please sign in to comment.