v -> v and v.client

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-15 04:18:07 -07:00
parent fafbcb5699
commit c428a59397
1 changed files with 1 additions and 1 deletions

View File

@ -913,7 +913,7 @@ def u_username_comments(username, v=None):
listing = get_comments(ids, v=v)
if v.client or request.path.endswith(".json"):
if (v and v.client) or request.path.endswith(".json"):
return {"data": [c.json for c in listing]}
return render_template("userpage_comments.html", u=user, v=v, listing=listing, page=page, sort=sort, t=t,next_exists=next_exists, is_following=is_following, standalone=True)