This commit is contained in:
Aevann1 2022-02-01 01:10:24 +02:00
parent 6fe3327d55
commit bc4939c213
6 changed files with 34 additions and 32 deletions

View file

@ -457,7 +457,7 @@ def message2(v, username):
if v.admin_level <= 1 and hasattr(user, 'is_blocked') and user.is_blocked:
return {"error": "This user is blocking you."}, 403
if v.shadowbanned: return {"message": "Message sent!"}
if v.shadowbanned and user.admin_level < 2: return {"message": "Message sent!"}
message = request.values.get("message", "").strip()[:10000].strip()