Better logic for determining bot status

merge-requests/30/head
Bob Mottram 2023-10-02 21:30:57 +01:00
parent cccad2fbda
commit 17c567b989
1 changed files with 2 additions and 2 deletions

View File

@ -219,10 +219,10 @@ def _get_masto_api_v1account(base_dir: str, nickname: str, domain: str,
if account_json['discoverable'] is False:
discoverable = False
group = False
bot = False
if account_json['type'] == 'Group':
group = True
bot = False
if account_json['type'] == 'Application':
elif account_json['type'] != 'Person':
bot = True
no_of_statuses = 0
no_of_followers = 0