diff --git a/CHANGELOG.md b/CHANGELOG.md index bb3b9bc..2d45658 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Set fetcher timeout to 3 minutes. - Set deliverer timeout to 30 seconds. - Added `federation` parameter group to configuration. +- Add empty `spoiler_text` property to Mastodon API Status object. ### Deprecated diff --git a/docs/openapi.yaml b/docs/openapi.yaml index c0e6187..366fa6f 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -1800,6 +1800,9 @@ components: visibility: description: Visibility of this post. $ref: '#/components/schemas/Visibility' + spoiler_text: + description: Subject or summary line, below which post content is collapsed until expanded. + type: string media_attachments: description: Media that is attached to this post. type: array diff --git a/src/mastodon_api/statuses/types.rs b/src/mastodon_api/statuses/types.rs index 0203d1e..877ebfa 100644 --- a/src/mastodon_api/statuses/types.rs +++ b/src/mastodon_api/statuses/types.rs @@ -64,6 +64,7 @@ pub struct Status { pub in_reply_to_id: Option, pub reblog: Option>, pub visibility: String, + pub spoiler_text: Option, pub replies_count: i32, pub favourites_count: i32, pub reblogs_count: i32, @@ -132,6 +133,7 @@ impl Status { in_reply_to_id: post.in_reply_to_id, reblog: reblog, visibility: visibility.to_string(), + spoiler_text: None, replies_count: post.reply_count, favourites_count: post.reaction_count, reblogs_count: post.repost_count,