fix deserializing Akkoma cards

This commit is contained in:
Conny Duck 2024-04-25 17:31:27 +02:00
parent c55d79562c
commit b89ef24113
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -22,12 +22,12 @@ import com.squareup.moshi.JsonClass
data class Card(
val url: String,
val title: String,
val description: String,
@Json(name = "author_name") val authorName: String,
val description: String = "",
@Json(name = "author_name") val authorName: String = "",
val image: String? = null,
val type: String,
val width: Int,
val height: Int,
val width: Int = 0,
val height: Int = 0,
val blurhash: String? = null,
@Json(name = "embed_url") val embedUrl: String? = null
) {