antispam: add antispam bypass
parent
baba11676a
commit
0f8ecd48dc
|
@ -382,7 +382,8 @@ def execute_blackjack(v, target, body, type):
|
|||
return False
|
||||
return True
|
||||
|
||||
def execute_antispam_comment_check(body, v):
|
||||
def execute_antispam_comment_check(body:str, v:User):
|
||||
if v.id in ANTISPAM_BYPASS_IDS: return
|
||||
if len(body) <= COMMENT_SPAM_LENGTH_THRESHOLD: return
|
||||
now = int(time.time())
|
||||
cutoff = now - 60 * 60 * 24
|
||||
|
|
|
@ -395,6 +395,8 @@ MAX_IMAGE_AUDIO_SIZE_MB_PATRON = 16
|
|||
MAX_VIDEO_SIZE_MB = 32
|
||||
MAX_VIDEO_SIZE_MB_PATRON = 64
|
||||
|
||||
ANTISPAM_BYPASS_IDS = []
|
||||
|
||||
if SITE == 'rdrama.net':
|
||||
FEATURES['PRONOUNS'] = True
|
||||
FEATURES['HOUSES'] = True
|
||||
|
@ -437,6 +439,8 @@ if SITE == 'rdrama.net':
|
|||
GEESE_ID = 1710
|
||||
BLACKJACKBTZ_ID = 12732
|
||||
|
||||
ANTISPAM_BYPASS_IDS = [1703, 13427]
|
||||
|
||||
GIFT_NOTIF_ID = CARP_ID
|
||||
|
||||
POLL_THREAD = 79285
|
||||
|
|
Loading…
Reference in New Issue