diff --git a/core/network/src/main/kotlin/app/pachli/core/network/model/Poll.kt b/core/network/src/main/kotlin/app/pachli/core/network/model/Poll.kt index 2c405ff43..3513a9794 100644 --- a/core/network/src/main/kotlin/app/pachli/core/network/model/Poll.kt +++ b/core/network/src/main/kotlin/app/pachli/core/network/model/Poll.kt @@ -16,7 +16,7 @@ data class Poll( val options: List, // Friendica can incorrectly return null for `voted`. Default to false. // https://github.com/friendica/friendica/issues/13922 - @BooleanIfNull(false) val voted: Boolean, + @BooleanIfNull(false) val voted: Boolean = false, @Json(name = "own_votes") val ownVotes: List?, ) { diff --git a/core/network/src/main/kotlin/app/pachli/core/network/model/Status.kt b/core/network/src/main/kotlin/app/pachli/core/network/model/Status.kt index f0f37eaf4..62ad960e0 100644 --- a/core/network/src/main/kotlin/app/pachli/core/network/model/Status.kt +++ b/core/network/src/main/kotlin/app/pachli/core/network/model/Status.kt @@ -43,9 +43,9 @@ data class Status( @Json(name = "reblogs_count") val reblogsCount: Int, @Json(name = "favourites_count") val favouritesCount: Int, @Json(name = "replies_count") val repliesCount: Int, - val reblogged: Boolean, - val favourited: Boolean, - val bookmarked: Boolean, + val reblogged: Boolean = false, + val favourited: Boolean = false, + val bookmarked: Boolean = false, val sensitive: Boolean, @Json(name = "spoiler_text") val spoilerText: String, val visibility: Visibility,