Fix not being able to follow hashtags on akkoma

Closes #408
This commit is contained in:
Shadowfacts 2023-06-03 18:07:44 -07:00
parent a4e7082ab8
commit 4b43726e1d
1 changed files with 7 additions and 1 deletions

View File

@ -96,7 +96,13 @@ public class InstanceFeatures: ObservableObject {
}
public var canFollowHashtags: Bool {
hasMastodonVersion(4, 0, 0)
if case .mastodon(_, let version) = instanceType {
return version >= Version(4, 0, 0)
} else if case .pleroma(.akkoma(let version)) = instanceType {
return version >= Version(3, 4, 0)
} else {
return false
}
}
public var filtersV2: Bool {