OOPS oops

This commit is contained in:
codl 2017-08-19 15:17:22 +02:00
parent 0dbfa5e0bc
commit b219f2971b
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 3 additions and 1 deletions

View File

@ -160,7 +160,9 @@ def delete_from_account(account_id):
action = lib.mastodon.delete
for post in posts:
refreshed = refresh_posts((post,))
if refreshed:
if refreshed and \
(not account.policy_keep_favourites or not post.favourite) \
and (not account.policy_keep_media or not post.has_media):
eligible = refreshed
break