forked from MarseyWorld/MarseyWorld
fdsfds
parent
8b8ed55dac
commit
5adb30ec77
|
@ -652,11 +652,9 @@ def u_username_comments(username, v=None):
|
||||||
u=u,
|
u=u,
|
||||||
v=v)
|
v=v)
|
||||||
|
|
||||||
if hasattr(u, 'is_blocked') and u.is_blocked and (not v or v.admin_level < 2):
|
if v and v.admin_level < 2 and hasattr(u, 'is_blocked') and u.is_blocked:
|
||||||
if request.headers.get("Authorization"): return {"error": "This person is blocking you."}
|
if request.headers.get("Authorization"): return {"error": "This person is blocking you."}
|
||||||
else: return render_template("userpage_blocked.html",
|
else: return render_template("userpage_blocked.html", u=u, v=v)
|
||||||
u=u,
|
|
||||||
v=v)
|
|
||||||
|
|
||||||
|
|
||||||
page = int(request.values.get("page", "1"))
|
page = int(request.values.get("page", "1"))
|
||||||
|
|
Loading…
Reference in New Issue