Changed wording
This commit is contained in:
parent
220cc7f7fa
commit
70625e5f1b
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue