fix 500 error for loggedout-cels

master
Aevann 2023-03-22 21:55:24 +02:00
parent 1971dc1b73
commit afdf3ebc78
1 changed files with 2 additions and 1 deletions

View File

@ -1052,7 +1052,8 @@ def u_username_comments(username, v=None):
ids.update([x.id for x in listing])
output = get_comments_v_properties(v, None, Comment.id.in_(ids))[1]
if v:
output = get_comments_v_properties(v, None, Comment.id.in_(ids))[1]
if v and v.client:
return {"data": [c.json(g.db) for c in listing]}