From 5e647e559ef446a9ea0ef6f9c286c5c79aa38a47 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 18 Jan 2025 20:09:06 +0100 Subject: [PATCH] feat: exclude reblogs from fetched tagged statuses --- mastodon.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mastodon.py b/mastodon.py index 7d35ce5..8842e06 100644 --- a/mastodon.py +++ b/mastodon.py @@ -5,10 +5,13 @@ from . import utils def get_account_tagged_statuses(app, tag): mastodon = initialize_client(app) account = mastodon.me() - print('>>> account id', account.id) statuses = [] try: - statuses = mastodon.account_statuses(id=account.id, tagged=tag) + statuses = mastodon.account_statuses( + id=account.id, + tagged=tag, + exclude_reblogs=True + ) except: print('>>> failed to fetch statuses', tag)