sfd
This commit is contained in:
parent
6fe3327d55
commit
bc4939c213
6 changed files with 34 additions and 32 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue