From fad4a43efdb1396c81f0dc1c8f5be2538b626bea Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@libreserver.org> Date: Mon, 2 Oct 2023 11:57:31 +0100 Subject: [PATCH] Group within masto api --- mastoapiv1.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mastoapiv1.py b/mastoapiv1.py index 892504819..ce8c975ca 100644 --- a/mastoapiv1.py +++ b/mastoapiv1.py @@ -76,6 +76,9 @@ def _get_masto_api_v1account(base_dir: str, nickname: str, domain: str) -> {}: if 'discoverable' in account_json: if account_json['discoverable'] is False: discoverable = False + group = False + if account_json['type'] == 'Group': + group = True masto_account_json = { "id": get_masto_api_v1id_from_nickname(nickname), "username": nickname, @@ -93,7 +96,8 @@ def _get_masto_api_v1account(base_dir: str, nickname: str, domain: str) -> {}: "header": image_url, "header_static": image_url, "noindex": noindex, - "discoverable": discoverable + "discoverable": discoverable, + "group": group } return masto_account_json