You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The possible values for Pleroma/Akkoma flavours are:
enumeration public unlisted local private direct
string value list:LIST_ID
To support associated values, the Visibility struct needs to become something like this:
publicenumVisibility:Codable,CaseIterable,Sendable,Equatable,Hashable{/// Visible to everyone, shown in public timelines.case `public`
/// Visible to public, but not included in public timelines.case unlisted
/// Visible to followers only, and to any mentioned users.case `private`
/// Visible only to mentioned users.case direct
/// The post is only visible to a list with the provided ids.case list(String)publicinit?(rawValue:String){
switch rawValue {case"public":self=.public
case"unlisted":self=.unlisted
case"private":self=.private
case"direct":self=.direct
default:
if rawValue.starts(with:"list:"){self=.list(rawValue)}else{returnnil}}}publicvarrawValue:String{
switch self{case.public:return"public"case.unlisted:return"unlisted"case.private:return"private"case.direct:return"direct"case.list(let listId):return listId
}}// Custom implementation to mimic CaseIterablepublicstaticvarallCases:[Visibility]{return[.public,.unlisted,.private,.direct]}}
Pleroma supports two additional visibility fields:
list
andlocal
The text was updated successfully, but these errors were encountered: