|
|
|
@ -11,6 +11,8 @@ public struct Preferences: Codable, Sendable {
|
|
|
|
|
public let postingDefaultVisibility: Visibility
|
|
|
|
|
public let postingDefaultSensitive: Bool
|
|
|
|
|
public let postingDefaultLanguage: String
|
|
|
|
|
// Whether posts federate or not (local-only) on Hometown
|
|
|
|
|
public let postingDefaultFederation: Bool?
|
|
|
|
|
public let readingExpandMedia: ExpandMedia
|
|
|
|
|
public let readingExpandSpoilers: Bool
|
|
|
|
|
public let readingAutoplayGifs: Bool
|
|
|
|
@ -19,6 +21,7 @@ public struct Preferences: Codable, Sendable {
|
|
|
|
|
case postingDefaultVisibility = "posting:default:visibility"
|
|
|
|
|
case postingDefaultSensitive = "posting:default:sensitive"
|
|
|
|
|
case postingDefaultLanguage = "posting:default:language"
|
|
|
|
|
case postingDefaultFederation = "posting:default:federation"
|
|
|
|
|
case readingExpandMedia = "reading:expand:media"
|
|
|
|
|
case readingExpandSpoilers = "reading:expand:spoilers"
|
|
|
|
|
case readingAutoplayGifs = "reading:autoplay:gifs"
|
|
|
|
|