mirror of https://gitlab.com/bashrc2/epicyon
Bot status of the admin account
parent
f3b418e6b2
commit
afcd2e29ac
|
@ -55,12 +55,16 @@ def metaDataInstance(instanceTitle: str, \
|
||||||
if not adminActor:
|
if not adminActor:
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
isBot=False
|
||||||
|
if adminActor['type']!='Person':
|
||||||
|
isBot=True
|
||||||
|
|
||||||
instance = {
|
instance = {
|
||||||
'approval_required': False,
|
'approval_required': False,
|
||||||
'contact_account': {'acct': adminActor['preferredUsername'],
|
'contact_account': {'acct': adminActor['preferredUsername'],
|
||||||
'avatar': adminActor['icon']['url'],
|
'avatar': adminActor['icon']['url'],
|
||||||
'avatar_static': adminActor['icon']['url'],
|
'avatar_static': adminActor['icon']['url'],
|
||||||
'bot': False,
|
'bot': isBot,
|
||||||
'created_at': '2019-07-01T10:30:00Z',
|
'created_at': '2019-07-01T10:30:00Z',
|
||||||
'display_name': adminActor['name'],
|
'display_name': adminActor['name'],
|
||||||
'emojis': [],
|
'emojis': [],
|
||||||
|
|
Loading…
Reference in New Issue