Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove wrong statuses attribute from Announcement model #4699

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

connyduck
Copy link
Collaborator

@connyduck connyduck commented Sep 27, 2024

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

@connyduck connyduck merged commit d00ad17 into develop Sep 28, 2024
3 checks passed
@connyduck connyduck deleted the fix-announcement-model branch September 28, 2024 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when opening Announcements
2 participants