forked from shadowfacts/Tusker
Fix pleroma not being detected
This commit is contained in:
parent
434d975767
commit
73d33ae730
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue