Avoid adding hidden posts by filters to the list of objects

This commit is contained in:
Manuel Cortez 2025-03-03 11:58:11 -06:00
parent 284c2bd87f
commit c76134b064

View File

@ -170,6 +170,9 @@ class Session(base.baseSession):
log.error("Ignoring an older tweet... Last id: {0}, tweet id: {1}".format(last_id, i.id)) log.error("Ignoring an older tweet... Last id: {0}, tweet id: {1}".format(last_id, i.id))
continue continue
if utils.find_item(i, self.db[name]) == None: if utils.find_item(i, self.db[name]) == None:
filter_status = utils.evaluate_filters(post=i, current_context=utils.get_current_context(name))
if filter_status == "hide":
continue
if self.settings["general"]["reverse_timelines"] == False: objects.append(i) if self.settings["general"]["reverse_timelines"] == False: objects.append(i)
else: objects.insert(0, i) else: objects.insert(0, i)
num = num+1 num = num+1