fix crosspost deletion

This commit is contained in:
mein Name 2025-02-04 19:29:00 +00:00 committed by Henri Dickson
parent 5f7bbaf411
commit 177cf4ec9e

View file

@ -339,7 +339,7 @@ class Piece(PolymorphicModel, UserOwnedObjectMixin):
if toot_id and user.mastodon:
user.mastodon.delete_post(toot_id)
post_id = metadata.get("bluesky_id")
if toot_id and user.bluesky:
if post_id and user.bluesky:
user.bluesky.delete_post(post_id)
def delete_crossposts(self):