forked from MarseyWorld/MarseyWorld
minor change to /remove_post
parent
8e257d2376
commit
69648de587
|
@ -1121,7 +1121,8 @@ def remove_post(post_id, v):
|
||||||
post = get_post(post_id)
|
post = get_post(post_id)
|
||||||
post.is_banned = True
|
post.is_banned = True
|
||||||
post.is_approved = None
|
post.is_approved = None
|
||||||
post.stickied = None
|
if post.stickied and not post.stickied.endswith('(pin award)'):
|
||||||
|
post.stickied = None
|
||||||
post.is_pinned = False
|
post.is_pinned = False
|
||||||
post.ban_reason = v.username
|
post.ban_reason = v.username
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
Loading…
Reference in New Issue