fix mastodon timeline sync

This commit is contained in:
Your Name 2024-11-17 23:46:40 -05:00 committed by Henri Dickson
parent 786c73e227
commit 9eac26f496

View file

@ -381,7 +381,7 @@ class Piece(PolymorphicModel, UserOwnedObjectMixin):
if toot_id:
self.metadata.pop("mastodon_url", None)
mastodon.delete_post(toot_id)
elif update_mode == 1:
elif update_mode == 2:
params.pop("update_id", None)
return self.crosspost_to_mastodon(params)
elif self.latest_post: