Fix certain instance features not being detected properly

This commit is contained in:
Shadowfacts 2022-11-13 17:08:15 -05:00
parent df131f32c6
commit 71f97d41c4
1 changed files with 4 additions and 4 deletions

View File

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