Fix pleroma not being detected

This commit is contained in:
Shadowfacts 2022-01-25 21:23:48 -05:00
parent 434d975767
commit 73d33ae730
1 changed files with 3 additions and 2 deletions

View File

@ -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