Skip to content

Commit

Permalink
add default value to Translation.mediaAttachments to fix translation …
Browse files Browse the repository at this point in the history
…on some servers (#4422)

see #4307 (comment)
  • Loading branch information
connyduck authored May 10, 2024
1 parent 05c7e7b commit 82817a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ data class Translation(
val spoilerText: String? = null,
val poll: TranslatedPoll? = null,
@Json(name = "media_attachments")
val mediaAttachments: List<MediaTranslation>,
val mediaAttachments: List<MediaTranslation> = emptyList(),
@Json(name = "detected_source_language")
val detectedSourceLanguage: String,
val provider: String,
Expand Down

0 comments on commit 82817a0

Please sign in to comment.