expires_in in scheduled status params

This commit is contained in:
Alexander Strizhakov 2021-02-11 13:01:48 +03:00
commit 1e6c27181e
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
6 changed files with 40 additions and 4 deletions

View file

@ -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]
}