From 73d33ae730c3496c741b1cc21e13e6eeb5585034 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 25 Jan 2022 21:23:48 -0500 Subject: [PATCH] Fix pleroma not being detected --- Tusker/InstanceFeatures.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tusker/InstanceFeatures.swift b/Tusker/InstanceFeatures.swift index 07f0d6da..d35b02c3 100644 --- a/Tusker/InstanceFeatures.swift +++ b/Tusker/InstanceFeatures.swift @@ -30,11 +30,12 @@ struct InstanceFeatures { } mutating func update(instance: Instance, nodeInfo: NodeInfo?) { - if instance.version.contains("glitch") { + let ver = instance.version.lowercased() + if ver.contains("glitch") { instanceType = .glitch } else if nodeInfo?.software.name == "hometown" { instanceType = .hometown - } else if instance.version.contains("pleroma") { + } else if ver.contains("pleroma") { instanceType = .pleroma } else { instanceType = .mastodon