better const name

master
Aevann 2024-07-12 17:11:51 +03:00
parent 1dc1d44b80
commit 5aa4b7a61b
2 changed files with 5 additions and 5 deletions

View File

@ -462,7 +462,7 @@ def execute_antispam_post_check(title, v, url):
def execute_antispam_duplicate_comment_check(v, body_html):
if v.admin_level >= PERMS['BYPASS_ANTISPAM_CHECKS']:
return
if v.id in ANTISPAM_BYPASS_IDS:
if v.id in EXEMPT_FROM_SPAM_FILTER:
return
if v.age >= NOTIFICATION_SPAM_AGE_THRESHOLD:
return
@ -484,7 +484,7 @@ def execute_antispam_comment_check(body, v):
if v.admin_level >= PERMS['BYPASS_ANTISPAM_CHECKS']:
return
if v.id in ANTISPAM_BYPASS_IDS: return
if v.id in EXEMPT_FROM_SPAM_FILTER: return
if len(body) <= COMMENT_SPAM_LENGTH_THRESHOLD: return
now = int(time.time())
cutoff = now - 60 * 60 * 24

View File

@ -590,7 +590,7 @@ GROUP_COST = 10000
HOLE_INACTIVITY_DELETION = False
BOT_SYMBOL_HIDDEN = set()
ANTISPAM_BYPASS_IDS = set()
EXEMPT_FROM_SPAM_FILTER = set()
AUTOJANNY_ID = 1
SNAPPY_ID = 2
@ -714,7 +714,7 @@ if SITE in {'rdrama.net', 'staging.rdrama.net'}:
HOLE_INACTIVITY_DELETION = True
BOT_SYMBOL_HIDDEN = {12125, 16049, 23576}
ANTISPAM_BYPASS_IDS = BOT_SYMBOL_HIDDEN | {1703, 13427, 15014, 24197, 25816}
EXEMPT_FROM_SPAM_FILTER = BOT_SYMBOL_HIDDEN | {1703, 13427, 15014, 24197, 25816}
EXEMPT_FROM_EDITING_LIMIT = {1048}
@ -833,7 +833,7 @@ elif SITE in {'watchpeopledie.tv', 'marsey.world'}:
SIGNUP_FOLLOW_ID = CARP_ID
CURRENCY_TRANSFER_ID = CARP_ID
ANTISPAM_BYPASS_IDS = {1718156}
EXEMPT_FROM_SPAM_FILTER = {1718156}
TIER_TO_NAME = {
1: "Beneficiary",