From 17c567b989e8a36d19fea316a6cf8a794a9d4479 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Oct 2023 21:30:57 +0100 Subject: [PATCH] Better logic for determining bot status --- mastoapiv1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastoapiv1.py b/mastoapiv1.py index e72c31e42..ab8e8baf1 100644 --- a/mastoapiv1.py +++ b/mastoapiv1.py @@ -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