fddfdf
parent
d7598af4ff
commit
81131400b8
|
@ -322,16 +322,30 @@ def u_username(username, v=None):
|
||||||
listing = get_posts(ids, v=v)
|
listing = get_posts(ids, v=v)
|
||||||
|
|
||||||
if u.unban_utc:
|
if u.unban_utc:
|
||||||
if request.headers.get("Authorization"): return {"data": [x.json for x in listing]}
|
if request.headers.get("Authorization"): {"data": [x.json for x in listing]}
|
||||||
else: return render_template("userpage.html",
|
else: return render_template("userpage.html",
|
||||||
u=u,
|
unban=u.unban_string,
|
||||||
v=v,
|
u=u,
|
||||||
listing=listing,
|
v=v,
|
||||||
page=page,
|
listing=listing,
|
||||||
sort=sort,
|
page=page,
|
||||||
t=t,
|
sort=sort,
|
||||||
next_exists=next_exists,
|
t=t,
|
||||||
is_following=(v and u.has_follower(v)))
|
next_exists=next_exists,
|
||||||
|
is_following=(v and u.has_follower(v)))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if request.headers.get("Authorization"): return {"data": [x.json for x in listing]}
|
||||||
|
else: return render_template("userpage.html",
|
||||||
|
u=u,
|
||||||
|
v=v,
|
||||||
|
listing=listing,
|
||||||
|
page=page,
|
||||||
|
sort=sort,
|
||||||
|
t=t,
|
||||||
|
next_exists=next_exists,
|
||||||
|
is_following=(v and u.has_follower(v)))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue