dont allow blacklisted niggas to submit emojis in WPD

master
Aevann 2023-10-26 17:53:20 +03:00
parent 316610f8e4
commit cdad9c2069
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ emoji_modifiers = ('pat', 'talking', 'genocide', 'love')
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
@auth_required
def submit_emoji(v):
if SITE_NAME == 'WPD' and v.blacklisted_by:
abort(403)
file = request.files["image"]
name = request.values.get('name', '').lower().strip()
tags = request.values.get('tags', '').lower().strip()