Fix certain instance features not being detected properly
This commit is contained in:
parent
df131f32c6
commit
71f97d41c4
|
@ -31,7 +31,7 @@ struct InstanceFeatures {
|
|||
}
|
||||
|
||||
var boostToOriginalAudience: Bool {
|
||||
instanceType == .pleroma || instanceType == .mastodon
|
||||
instanceType == .pleroma || instanceType.isMastodon
|
||||
}
|
||||
|
||||
var profilePinnedStatuses: Bool {
|
||||
|
@ -39,15 +39,15 @@ struct InstanceFeatures {
|
|||
}
|
||||
|
||||
var trends: Bool {
|
||||
instanceType == .mastodon
|
||||
instanceType.isMastodon
|
||||
}
|
||||
|
||||
var trendingStatusesAndLinks: Bool {
|
||||
instanceType == .mastodon && hasVersion(3, 5, 0)
|
||||
instanceType.isMastodon && hasVersion(3, 5, 0)
|
||||
}
|
||||
|
||||
var reblogVisibility: Bool {
|
||||
(instanceType == .mastodon && hasVersion(2, 8, 0))
|
||||
(instanceType.isMastodon && hasVersion(2, 8, 0))
|
||||
|| (instanceType == .pleroma && hasPleromaVersion(2, 0, 0))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue