diff --git a/files/routes/admin.py b/files/routes/admin.py index 9b169ef905..40073334ee 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -852,7 +852,7 @@ def api_sticky_post(post_id, v): g.db.add(post) ma=ModAction( - kind="unpin_post" if post.stickied else "pin_post", + kind="pin_post" if post.stickied else "unpin_post", user_id=v.id, target_submission_id=post.id )