From c76134b06485f4ede32efd7dccdfe3db111abfd9 Mon Sep 17 00:00:00 2001 From: Manuel cortez Date: Mon, 3 Mar 2025 11:58:11 -0600 Subject: [PATCH] Avoid adding hidden posts by filters to the list of objects --- src/sessions/mastodon/session.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sessions/mastodon/session.py b/src/sessions/mastodon/session.py index 411ee9cc..57e153ed 100644 --- a/src/sessions/mastodon/session.py +++ b/src/sessions/mastodon/session.py @@ -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)) continue 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) else: objects.insert(0, i) num = num+1