antispam: add antispam bypass

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-24 12:27:25 -05:00
parent baba11676a
commit 0f8ecd48dc
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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