mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-04-05 11:22:30 -04:00
Avoid adding hidden posts by filters to the list of objects
This commit is contained in:
parent
284c2bd87f
commit
c76134b064
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user