add default value to Translation.mediaAttachments to fix translation on some servers (#4422)

see https://github.com/tuskyapp/Tusky/pull/4307#issuecomment-2093827027
This commit is contained in:
Konrad Pozniak 2024-05-10 12:21:37 +02:00 committed by GitHub
parent 05c7e7b806
commit 82817a089b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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,