Restrict abuse from young accounts.

remotes/1693045480750635534/spooky-22
Snakes 2022-07-29 15:55:12 -04:00
parent 390acb66e0
commit 0539609d61
Signed by: Snakes
GPG Key ID: E745A82778055C7E
2 changed files with 5 additions and 0 deletions

View File

@ -88,6 +88,10 @@ def add_notif(cid, uid):
def NOTIFY_USERS(text, v):
# Restrict young accounts from generating notifications
if v.age < NOTIFICATION_SPAM_AGE_THRESHOLD:
return set()
notify_users = set()
for word, id in NOTIFIED_USERS.items():
if id == 0 or v.id == id: continue

View File

@ -168,6 +168,7 @@ PIN_LIMIT = 3
POST_RATE_LIMIT = '1/second;2/minute;10/hour;50/day'
LOGGEDIN_ACTIVE_TIME = 15 * 60
PFP_DEFAULT_MARSEY = True
NOTIFICATION_SPAM_AGE_THRESHOLD = 3 * 86400
HOLE_NAME = 'hole'
HOLE_STYLE_FLAIR = False