Group within masto api

main
Bob Mottram 2023-10-02 11:57:31 +01:00
parent 0d6d71a4ad
commit fad4a43efd
1 changed files with 5 additions and 1 deletions

View File

@ -76,6 +76,9 @@ def _get_masto_api_v1account(base_dir: str, nickname: str, domain: str) -> {}:
if 'discoverable' in account_json: if 'discoverable' in account_json:
if account_json['discoverable'] is False: if account_json['discoverable'] is False:
discoverable = False discoverable = False
group = False
if account_json['type'] == 'Group':
group = True
masto_account_json = { masto_account_json = {
"id": get_masto_api_v1id_from_nickname(nickname), "id": get_masto_api_v1id_from_nickname(nickname),
"username": nickname, "username": nickname,
@ -93,7 +96,8 @@ def _get_masto_api_v1account(base_dir: str, nickname: str, domain: str) -> {}:
"header": image_url, "header": image_url,
"header_static": image_url, "header_static": image_url,
"noindex": noindex, "noindex": noindex,
"discoverable": discoverable "discoverable": discoverable,
"group": group
} }
return masto_account_json return masto_account_json