From 545583cf04e9f1d887c4d5b5513a0223c2014f84 Mon Sep 17 00:00:00 2001 From: jovre Date: Sun, 3 Mar 2024 00:29:00 +0100 Subject: [PATCH] bekkalokk/gitea: Do not change the user visibility --- hosts/bekkalokk/services/gitea/gitea-import-users.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/bekkalokk/services/gitea/gitea-import-users.py b/hosts/bekkalokk/services/gitea/gitea-import-users.py index 69755bc7..7211c649 100644 --- a/hosts/bekkalokk/services/gitea/gitea-import-users.py +++ b/hosts/bekkalokk/services/gitea/gitea-import-users.py @@ -51,6 +51,7 @@ def add_user(username, name): existing_users[username] = user else: + user["visibility"] = existing_users[username]["visibility"] r = requests.patch(GITEA_API_URL + f'/admin/users/{username}', json=user, headers={'Authorization': 'token ' + API_TOKEN})