chore: Codestyle changes
This commit is contained in:
parent
903d789b53
commit
518941b10c
|
@ -48,6 +48,13 @@ extension Instance {
|
|||
public var canFollowTags: Bool {
|
||||
version?.majorServerVersion(greaterThanOrEquals: 4) ?? false // following Tags is support beginning with Mastodon v4.0.0
|
||||
}
|
||||
|
||||
var isTranslationEnabled: Bool {
|
||||
if let configuration = configurationV2 {
|
||||
return configuration.translation?.enabled == true
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
extension String {
|
||||
|
@ -60,12 +67,3 @@ extension String {
|
|||
return majorVersionInt >= comparedVersion
|
||||
}
|
||||
}
|
||||
|
||||
extension Instance {
|
||||
var isTranslationEnabled: Bool {
|
||||
if let configuration = configurationV2 {
|
||||
return configuration.translation?.enabled == true
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue