forked from rDrama/rDrama
1
0
Fork 0

lawlzposts: restrict to rDrama

master
justcool393 2022-10-23 12:02:55 -05:00
parent ec1affcf85
commit bd0f56fd22
1 changed files with 1 additions and 1 deletions

View File

@ -1251,7 +1251,7 @@ def unsticky_post(post_id, v):
post = get_post(post_id)
if post.stickied:
if post.stickied.endswith('(pin award)'): abort(403, "Can't unpin award pins!")
if post.author_id == LAWLZ_ID: abort(403, "Can't unpin lawlzposts!")
if post.author_id == LAWLZ_ID and SITE_NAME == 'rDrama': abort(403, "Can't unpin lawlzposts!")
post.stickied = None
post.stickied_utc = None