feat: exclude reblogs from fetched tagged statuses
This commit is contained in:
parent
6246445adb
commit
5e647e559e
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue