Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ data class LocalUser(
val enable_animated_images: Boolean,
val collapse_bot_comments: Boolean,
/** Added in 0.19.11 */
val last_donation_notification: String = "",
val last_donation_notification: String,
) : DatatypeRoot, Identity
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ internal class Transformer(var auth: String) : MapperGenerator {
enable_keyboard_navigation = false,
enable_animated_images = true,
collapse_bot_comments = false,
last_donation_notification = "",
)

override fun toUni(d: X5DatatypesMyUserInfo): LemmyapiDatatypesMyUserInfo =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,7 @@ internal class Transformer : MapperGenerator {
enable_keyboard_navigation = d.enable_keyboard_navigation,
enable_animated_images = d.enable_animated_images,
collapse_bot_comments = d.collapse_bot_comments,
last_donation_notification = "",
)

override fun toUni(d: X0DatatypesLocalUserView): LemmyapiDatatypesLocalUserView =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ import it.vercruysse.lemmyapi.v0.x19.x11.datatypes.UpdateTotpResponse as X11Data
import it.vercruysse.lemmyapi.v0.x19.x11.datatypes.VerifyEmail as X11DatatypesVerifyEmail
import it.vercruysse.lemmyapi.v0.x19.x11.datatypes.VoteView as X11DatatypesVoteView

// Based on tags/0.19.11
// Based on tags/0.19.11-donation-dialog.1
internal class Transformer : MapperGenerator {
override fun toUni(d: X11DatatypesAddAdminResponse): LemmyapiDatatypesAddAdminResponse =
LemmyapiDatatypesAddAdminResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,7 @@ internal class Transformer : MapperGenerator {
enable_keyboard_navigation = d.enable_keyboard_navigation,
enable_animated_images = d.enable_animated_images,
collapse_bot_comments = d.collapse_bot_comments,
last_donation_notification = "",
)

override fun toUni(d: X3DatatypesLocalUserView): LemmyapiDatatypesLocalUserView =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@ internal class Transformer : MapperGenerator {
enable_keyboard_navigation = d.enable_keyboard_navigation,
enable_animated_images = d.enable_animated_images,
collapse_bot_comments = d.collapse_bot_comments,
last_donation_notification = "",
)

override fun toUni(d: X4DatatypesLocalUserView): LemmyapiDatatypesLocalUserView =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,7 @@ internal class Transformer : MapperGenerator {
enable_keyboard_navigation = d.enable_keyboard_navigation,
enable_animated_images = d.enable_animated_images,
collapse_bot_comments = d.collapse_bot_comments,
last_donation_notification = "",
)

override fun toUni(d: X6DatatypesLocalUserView): LemmyapiDatatypesLocalUserView =
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ POM_DEVELOPER_URL=https://github.com/MV-GH

POM_ARTIFACT_ID=lemmy-api
GROUP=it.vercruysse.lemmyapi
VERSION_NAME=0.4.0-SNAPSHOT
VERSION_NAME=0.4.1-SNAPSHOT

Loading