bot flag within masto api

main
Bob Mottram 2023-10-02 13:23:44 +01:00
parent d4060eed22
commit e779d4cf4b
1 changed files with 8 additions and 1 deletions

View File

@ -93,6 +93,9 @@ def _get_masto_api_v1account(base_dir: str, nickname: str, domain: str,
group = False
if account_json['type'] == 'Group':
group = True
bot = False
if account_json['type'] == 'Application':
bot = True
no_of_statuses = 0
no_of_followers = 0
no_of_following = 0
@ -121,7 +124,11 @@ def _get_masto_api_v1account(base_dir: str, nickname: str, domain: str,
"header_static": image_url,
"noindex": noindex,
"discoverable": discoverable,
"group": group
"group": group,
"bot": bot,
"emojis": [],
"roles": [],
"fields": []
}
return masto_account_json