From e0d4a0393485fd641c087340b24cc5a6091da84c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 10 Sep 2022 01:35:04 +0200 Subject: [PATCH] trying to fix 500 error --- files/routes/users.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/users.py b/files/routes/users.py index 0256a88ab..4c3591860 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -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)):