From 16f949e38dca23c03e863b92ffa7d9285a482f34 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 11 Aug 2022 15:09:39 +0200 Subject: [PATCH] pure rage --- files/helpers/const.py | 4 ---- files/templates/comments.html | 6 +++--- files/templates/submission.html | 6 +++--- files/templates/submission_listing.html | 6 +++--- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 8e42ebeda..d06b44532 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -150,8 +150,6 @@ PERMS = { # Minimum admin_level to perform action. 'ADMIN_CATEGORIES_MANAGE': 3, # create/update/delete categories 'HOLE_CREATE': 0, 'CONTENT_THREADS': 3, - 'FLAGS_VISIBLE': 0, - 'FLAGS_VISIBLE_REPORTER': 0, 'FLAGS_REMOVE': 2, 'VOTES_VISIBLE': 0, 'USER_BLOCKS_VISIBLE': 0, @@ -331,7 +329,6 @@ elif SITE == 'pcmemes.net': LOTTERY_SINK_RATE = -8 elif SITE == 'watchpeopledie.co': PERMS['HOLE_CREATE'] = 2 - PERMS['FLAGS_VISIBLE'] = 2 FEATURES['PROCOINS'] = False @@ -349,7 +346,6 @@ elif SITE == 'watchpeopledie.co': SNAKES_ID = 32 elif SITE == 'lgbdropthet.com': PERMS['HOLE_CREATE'] = 3 - PERMS['FLAGS_VISIBLE_REPORTER'] = 2 PERMS['VOTES_VISIBLE'] = 2 PERMS['USER_BLOCKS_VISIBLE'] = 2 PERMS['USER_FOLLOWS_VISIBLE'] = 2 diff --git a/files/templates/comments.html b/files/templates/comments.html index 3289e645f..2e232fdbd 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -182,7 +182,7 @@ {% if c.bannedfor %} {% endif %} - {% if c.active_flags(v) and (v and v.admin_level >= PERMS['FLAGS_VISIBLE']) %}{{c.active_flags(v)}} Report{{ help.plural(c.active_flags(v)) }}{% endif %} + {% if c.active_flags(v) %}{{c.active_flags(v)}} Report{{ help.plural(c.active_flags(v)) }}{% endif %} {% if c.over_18 %}+18{% endif %} {% if v and v.admin_level > 1 and c.author.shadowbanned %}{% endif %} {% if c.stickied %} @@ -258,13 +258,13 @@ {{c.wordle_html(v) | safe}} {% endif %} - {% if c.active_flags(v) and (v and v.admin_level >= PERMS['FLAGS_VISIBLE']) %} + {% if c.active_flags(v) %}
Reported by:

 				
 			
diff --git a/files/templates/submission.html b/files/templates/submission.html index 1829c71f2..901ef36e6 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -658,7 +658,7 @@ {% if p.is_bot %} {% endif %} {% if p.over_18 %}+18{% endif %} {% if p.private %}Draft{% endif %} - {% if p.active_flags(v) and (v and v.admin_level >= PERMS['FLAGS_VISIBLE']) %}{{p.active_flags(v)}} Report{{ help.plural(p.active_flags(v)) }}{% endif %} + {% if p.active_flags(v) %}{{p.active_flags(v)}} Report{{ help.plural(p.active_flags(v)) }}{% endif %} {% if p.ghost %} 👻 @@ -693,13 +693,13 @@ {% endif %}   {{p.views}} thread views - {% if p.active_flags(v) and (v and v.admin_level >= PERMS['FLAGS_VISIBLE']) %} + {% if p.active_flags(v) %}
Reported by:

 						
 					
diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index b4f85cdb4..2940ae6b8 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -72,13 +72,13 @@ {% set v_forbid_deleted = (p.deleted_utc != 0 or p.is_banned) and not (v and v.admin_level >= 2) and not (v and v.id == p.author_id) %} -{% if p.active_flags(v) and (v and v.admin_level >= PERMS['FLAGS_VISIBLE']) %} +{% if p.active_flags(v) %}
Reported by:

 		
 	
@@ -194,7 +194,7 @@ {% if p.is_blocking %}{% endif %} {% if p.is_blocked %}{% endif %} {% if p.private %}Draft{% endif %} - {% if p.active_flags(v) and (v and v.admin_level >= PERMS['FLAGS_VISIBLE']) %}{{p.active_flags(v)}} Report{{ help.plural(p.active_flags(v)) }}{% endif %} + {% if p.active_flags(v) %}{{p.active_flags(v)}} Report{{ help.plural(p.active_flags(v)) }}{% endif %} {% if p.ghost %} 👻