diff options
author | feld <feld@feld.me> | 2021-02-26 16:49:11 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2021-02-26 16:49:11 +0000 |
commit | 840686ecd5b57a210415539d4f5cc1038d25e5ce (patch) | |
tree | b205b3e7acece4cd5ef095f987a00ef9eade1a35 /lib/pleroma/web/api_spec/schemas/scheduled_status.ex | |
parent | 2217b35bd40593f5dcfdba4c13dd7b7bded018f3 (diff) | |
parent | 1e6c27181e0bbfad3fbd964d770cd4d547c10236 (diff) |
Merge branch 'fix/2498-expires_in-scheduled-posts' into 'develop'
expires_in in scheduled status params
Closes #2498
See merge request pleroma/pleroma!3315
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas/scheduled_status.ex')
-rw-r--r-- | lib/pleroma/web/api_spec/schemas/scheduled_status.ex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/scheduled_status.ex b/lib/pleroma/web/api_spec/schemas/scheduled_status.ex index cc051046a..607586e32 100644 --- a/lib/pleroma/web/api_spec/schemas/scheduled_status.ex +++ b/lib/pleroma/web/api_spec/schemas/scheduled_status.ex @@ -30,7 +30,8 @@ defmodule Pleroma.Web.ApiSpec.Schemas.ScheduledStatus do visibility: %Schema{allOf: [VisibilityScope], nullable: true}, scheduled_at: %Schema{type: :string, format: :"date-time", nullable: true}, poll: StatusOperation.poll_params(), - in_reply_to_id: %Schema{type: :string, nullable: true} + in_reply_to_id: %Schema{type: :string, nullable: true}, + expires_in: %Schema{type: :integer, nullable: true} } } }, @@ -46,7 +47,8 @@ defmodule Pleroma.Web.ApiSpec.Schemas.ScheduledStatus do scheduled_at: nil, poll: nil, idempotency: nil, - in_reply_to_id: nil + in_reply_to_id: nil, + expires_in: nil }, media_attachments: [Attachment.schema().example] } |