From e361b151c25ac9afbdeb7af6bd4f366e0b8b0d91 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 17 Jan 2022 23:36:04 +0200 Subject: [PATCH] vcxcxv --- files/helpers/const.py | 16 ++++++++-------- files/routes/votes.py | 1 + files/templates/comments.html | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index fd43407af9..9e4824a49c 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -545,14 +545,6 @@ AWARDS = { "color": "text-red", "price": 300 }, - "ghosts": { - "kind": "ghosts", - "title": "Ghosts", - "description": "Hides the usernames of everyone in the thread", - "icon": "fas fa-ghost", - "color": "text-white", - "price": 200 - }, "spiders": { "kind": "spiders", "title": "Spiders", @@ -609,6 +601,14 @@ AWARDS = { "color": "text-yellow", "price": 300 }, + "ghosts": { + "kind": "ghosts", + "title": "Ghosts", + "description": "Hides the usernames of everyone in the thread", + "icon": "fas fa-ghost", + "color": "text-white", + "price": 500 + }, "progressivestack": { "kind": "progressivestack", "title": "Progressive Stack", diff --git a/files/routes/votes.py b/files/routes/votes.py index 79c6564a0c..a781da8c85 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -39,6 +39,7 @@ def admin_vote_info_get(v): ).order_by(Vote.id).all() elif isinstance(thing, Comment): + if thing.author_name == '👻': abort(403) if thing.author.shadowbanned and not (v and v.admin_level): thing_id = g.db.query(Comment.id).filter_by(upvotes=thing.upvotes, downvotes=thing.downvotes).order_by(Comment.id).first()[0] diff --git a/files/templates/comments.html b/files/templates/comments.html index 3d4e9d5356..36b4b98d70 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -400,7 +400,7 @@ {% endif %} - Votes + {% if c.author_name != '👻' %}:Votes{% endif %} {% if v %} @@ -582,7 +582,7 @@