forked from MarseyWorld/MarseyWorld
better const name
parent
1dc1d44b80
commit
5aa4b7a61b
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue