From c5a8a692787867e43e1033523d65c767b0350a9e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 30 Dec 2021 17:03:28 +0200 Subject: [PATCH] sfd --- files/routes/admin.py | 1 + files/routes/comments.py | 4 ---- files/templates/default.html | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 80dc28bf3..24e9d137c 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1072,6 +1072,7 @@ def unsticky_comment(cid, v): if comment.is_pinned.endswith("(pin award)"): return {"error": "Can't unpin award pins!"}, 403 + comment.is_pinned = None g.db.add(comment) ma=ModAction( diff --git a/files/routes/comments.py b/files/routes/comments.py index 60462633e..399e3a9eb 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -261,10 +261,6 @@ def api_comment(v): v.ban(reason="Spamming.", days=1) - for alt in v.alts: - if not alt.is_suspended: - alt.ban(reason="Spamming.", days=1) - for comment in similar_comments: comment.is_banned = True comment.ban_reason = "AutoJanny" diff --git a/files/templates/default.html b/files/templates/default.html index 7cd84688b..ca2ced314 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -278,7 +278,7 @@ {% block sidebar %}