diff --git a/files/routes/admin.py b/files/routes/admin.py index b85135058a..f536931a74 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -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 and SITE_NAME == 'rDrama': abort(403, "Can't unpin lawlzposts!") + if post.author_id == LAWLZ_ID and post.stickied_utc and SITE_NAME == 'rDrama': abort(403, "Can't unpin lawlzposts!") post.stickied = None post.stickied_utc = None diff --git a/files/routes/front.py b/files/routes/front.py index 80f9c78895..e30e624266 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -164,7 +164,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false" if v: pins = pins.filter(Submission.author_id.notin_(v.userblocks)) if SITE_NAME == 'rDrama': - pins = pins.order_by(Submission.author_id == LAWLZ_ID) + pins = pins.order_by(Submission.author_id != LAWLZ_ID) pins = pins.order_by(Submission.created_utc.desc()).all() posts = pins + posts