From 71f97d41c4c3375b2a92cc9caaffac911d28b828 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 13 Nov 2022 17:08:15 -0500 Subject: [PATCH] Fix certain instance features not being detected properly --- Tusker/API/InstanceFeatures.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tusker/API/InstanceFeatures.swift b/Tusker/API/InstanceFeatures.swift index debff76aac..1ac5d2abca 100644 --- a/Tusker/API/InstanceFeatures.swift +++ b/Tusker/API/InstanceFeatures.swift @@ -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)) }