remotes/1693045480750635534/spooky-22
Aevann1 2021-07-31 08:13:16 +02:00
parent d7598af4ff
commit 81131400b8
1 changed files with 23 additions and 9 deletions

View File

@ -322,16 +322,30 @@ def u_username(username, v=None):
listing = get_posts(ids, v=v)
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",
u=u,
v=v,
listing=listing,
page=page,
sort=sort,
t=t,
next_exists=next_exists,
is_following=(v and u.has_follower(v)))
unban=u.unban_string,
u=u,
v=v,
listing=listing,
page=page,
sort=sort,
t=t,
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)))