trying to fix 500 error

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-10 01:35:04 +02:00
parent 3f43489bd3
commit e0d4a03934
1 changed files with 1 additions and 0 deletions

View File

@ -975,6 +975,7 @@ def u_username(username, v=None):
else: view = ViewerRelationship(viewer_id=v.id, user_id=u.id)
g.db.add(view)
g.db.commit()
if u.is_private and (not v or (v.id != u.id and v.admin_level < 2 and not v.eye)):