File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
app/src/commonMain/kotlin/it/vercruysse/lemmyapi/v0/x19/x11 Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1754,7 +1754,7 @@ internal class Transformer : MapperGenerator {
17541754 nsfw = d.nsfw,
17551755 posting_restricted_to_mods = d.posting_restricted_to_mods,
17561756 discussion_languages = d.discussion_languages,
1757- visibility = d.visibility?.name ,
1757+ visibility = d.visibility,
17581758 )
17591759
17601760 override fun fromUni (d : LemmyapiDatatypesCreateCustomEmoji ): X11DatatypesCreateCustomEmoji =
Original file line number Diff line number Diff line change 11package it.vercruysse.lemmyapi.v0.x19.x11.datatypes
22
3+ import it.vercruysse.lemmyapi.dto.CommunityVisibility
34import kotlinx.serialization.Serializable
45
56@Serializable
@@ -12,5 +13,5 @@ internal data class CreateCommunity(
1213 val nsfw : Boolean? = null ,
1314 val posting_restricted_to_mods : Boolean? = null ,
1415 val discussion_languages : List <LanguageId >? = null ,
15- val visibility : String ? /* "Public" | "LocalOnly" */ = null ,
16+ val visibility : CommunityVisibility ? /* "Public" | "LocalOnly" */ = null ,
1617)
You can’t perform that action at this time.
0 commit comments