From afcd2e29ac559e22aa0358bb86a09ea1e03a4f62 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 13 Nov 2019 13:17:35 +0000 Subject: [PATCH] Bot status of the admin account --- metadata.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/metadata.py b/metadata.py index 70058b6b..494e898b 100644 --- a/metadata.py +++ b/metadata.py @@ -55,12 +55,16 @@ def metaDataInstance(instanceTitle: str, \ if not adminActor: return {} + isBot=False + if adminActor['type']!='Person': + isBot=True + instance = { 'approval_required': False, 'contact_account': {'acct': adminActor['preferredUsername'], 'avatar': adminActor['icon']['url'], 'avatar_static': adminActor['icon']['url'], - 'bot': False, + 'bot': isBot, 'created_at': '2019-07-01T10:30:00Z', 'display_name': adminActor['name'], 'emojis': [],