remove wrong statuses attribute from Announcement model (#4699)
https://docs.joinmastodon.org/entities/Announcement/ The statuses in this model are not full statuses but we expect them, so parsing a response that contains one fails. `com.squareup.moshi.JsonDataException: Required value 'account' missing at $[0].statuses[1]` Since we don't even use the attribute, we can just remove it to fix the bug. Closes #4696
This commit is contained in:
parent
4cc14bed05
commit
d00ad17603
1 changed files with 0 additions and 1 deletions
|
|
@ -30,7 +30,6 @@ data class Announcement(
|
|||
@Json(name = "updated_at") val updatedAt: Date,
|
||||
val read: Boolean = false,
|
||||
val mentions: List<Status.Mention>,
|
||||
val statuses: List<Status>,
|
||||
val tags: List<HashTag>,
|
||||
val emojis: List<Emoji>,
|
||||
val reactions: List<Reaction>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue