sex
This commit is contained in:
parent
f33e23d240
commit
ebfbf8eeb9
1 changed files with 4 additions and 1 deletions
|
@ -221,7 +221,10 @@ def message2(v, username):
|
|||
|
||||
user = get_user(username, v=v)
|
||||
if hasattr(user, 'is_blocking') and user.is_blocking: return {"error": "You're blocking this user."}, 403
|
||||
if hasattr(user, 'is_blocked') and user.is_blocked: return {"error": "This user is blocking you."}, 403
|
||||
|
||||
if v.admin_level <= 1:
|
||||
if hasattr(user, 'is_blocked') and user.is_blocked: return {"error": "This user is blocking you."}, 403
|
||||
|
||||
message = request.values.get("message", "")[:1000].strip()
|
||||
|
||||
# check existing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue