Changed wording

This commit is contained in:
lluni 2023-08-02 00:32:48 +02:00
parent 220cc7f7fa
commit 70625e5f1b
Signed by: lluni
GPG key ID: ACEEB468BC325D35

View file

@ -58,7 +58,7 @@ def cleanup(limit: int = 40, id: int | None = None):
for submission in last_posts: for submission in last_posts:
# if post has no favorites, boosts or replies, delete it # if post has no favorites, boosts or replies, delete it
if submission["favourites_count"] == 0 and submission["reblogs_count"] == 0 and submission["replies_count"] == 0: if submission["favourites_count"] == 0 and submission["reblogs_count"] == 0 and submission["replies_count"] == 0:
print("Trying to delete post:", submission["url"]) print("Deleting post:", submission["url"])
try: try:
mastodon.status_delete(submission["id"]) mastodon.status_delete(submission["id"])
except MastodonRatelimitError: except MastodonRatelimitError: