fdfd
This commit is contained in:
parent
a402276a98
commit
3d30ed2fc3
1 changed files with 1 additions and 1 deletions
|
@ -852,7 +852,7 @@ def api_sticky_post(post_id, v):
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
ma=ModAction(
|
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,
|
user_id=v.id,
|
||||||
target_submission_id=post.id
|
target_submission_id=post.id
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue