2
0
Fork 0

fix searches loading, it broke sometimes. not sure why

This commit is contained in:
notfire 2025-07-22 12:52:08 -04:00
commit 4220321840
No known key found for this signature in database

View file

@ -261,7 +261,8 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
let retweet
// If the retweeted status is already there, don't add the retweet
// to the timeline.
if (rootState.config.dedupeBoosts && timeline && find(timelineObject.statuses, (s) => {
var cond = rootState !== undefined ? rootState.config.dedupeBoosts : true
if (cond && rootState.config.dedupeBoosts && timeline && find(timelineObject.statuses, (s) => {
if (s.retweeted_status) {
return s.id === retweetedStatus.id || s.retweeted_status.id === retweetedStatus.id
} else {