Restrict abuse from young accounts.
parent
390acb66e0
commit
0539609d61
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue