This commit is contained in:
Aevann1 2021-10-23 01:50:00 +02:00
parent c5952f1845
commit 266f501146
50 changed files with 117 additions and 118 deletions

View file

@ -230,8 +230,7 @@ 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 v.admin_level <= 1:
if hasattr(user, 'is_blocked') and user.is_blocked: return {"error": "This user is blocking you."}, 403
if v.admin_level <= 1 and hasattr(user, 'is_blocked') and user.is_blocked: return {"error": "This user is blocking you."}, 403
message = request.values.get("message", "").strip()[:1000].strip()