Skip to content

Commit

Permalink
remove wrong statuses attribute from Announcement model (#4699)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
connyduck authored Sep 28, 2024
1 parent 4cc14be commit d00ad17
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit d00ad17

Please sign in to comment.