1
0
mirror of https://github.com/tuskyapp/Tusky synced 2025-02-09 18:20:45 +01:00

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 Conny Duck
parent 7e9e729331
commit dc4fd8f1d0
No known key found for this signature in database

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,