don't spam endless posts when trying to schedule on GoToSocial (#4705)

closes #4703
This commit is contained in:
Konrad Pozniak 2024-10-11 09:23:30 +02:00 committed by GitHub
commit c45a3320d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 5 deletions

View file

@ -25,3 +25,10 @@ data class ScheduledStatus(
val params: StatusParams,
@Json(name = "media_attachments") val mediaAttachments: List<Attachment>
)
// minimal class to avoid json parsing errors with servers that don't support scheduling
// https://github.com/tuskyapp/Tusky/issues/4703
@JsonClass(generateAdapter = true)
data class ScheduledStatusReply(
val id: String,
)