diff --git a/app/activitypub/util.py b/app/activitypub/util.py index 93d16a0f..2a9d99c7 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -1071,15 +1071,15 @@ def refresh_instance_profile_task(instance_id: int): if 'type' in instance_json and instance_json['type'] == 'Application': # 'name' is unreliable as the admin can change it to anything. todo: find better way if instance_json['name'].lower() == 'kbin': - software = 'Kbin' + software = 'kbin' elif instance_json['name'].lower() == 'mbin': - software = 'Mbin' + software = 'mbin' elif instance_json['name'].lower() == 'piefed': - software = 'PieFed' + software = 'piefed' elif instance_json['name'].lower() == 'system account': - software = 'Friendica' + software = 'friendica' else: - software = 'Lemmy' + software = 'lemmy' instance.inbox = instance_json['inbox'] instance.outbox = instance_json['outbox'] instance.software = software diff --git a/app/cli.py b/app/cli.py index 38d72748..8ef21031 100644 --- a/app/cli.py +++ b/app/cli.py @@ -199,7 +199,7 @@ def register(app): if node.status_code == 200: node_json = node.json() if 'software' in node_json: - instance.software = node_json['software']['name'] + instance.software = node_json['software']['name'].lower() instance.version = node_json['software']['version'] instance.failures = 0 instance.dormant = False