This commit is contained in:
Aevann1 2021-08-27 23:21:51 +02:00
parent a402276a98
commit 3d30ed2fc3

View file

@ -852,7 +852,7 @@ def api_sticky_post(post_id, v):
g.db.add(post)
ma=ModAction(
kind="pin_post" if post.is_pinned else "unpin_post",
kind="unpin_post" if post.stickied else "pin_post",
user_id=v.id,
target_submission_id=post.id
)