diff options
author | Roman Chvanikov <chvanikoff@pm.me> | 2020-09-08 13:26:44 +0300 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@pm.me> | 2020-09-08 13:26:44 +0300 |
commit | c56e3d4f3bfb090d19bdbe93dac6cede7616cc4d (patch) | |
tree | a7bd7e51ff5a7802199f5be95879ce824f9a2078 /lib/pleroma/web/api_spec | |
parent | d5c286b80225b51dabf4eb63ad8ab818ea534851 (diff) | |
download | pleroma-c56e3d4f3bfb090d19bdbe93dac6cede7616cc4d.tar.gz |
Add expires_in param for account mutes
Diffstat (limited to 'lib/pleroma/web/api_spec')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/account_operation.ex | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/pleroma/web/api_spec/operations/account_operation.ex b/lib/pleroma/web/api_spec/operations/account_operation.ex index aaebc9b5c..de715a077 100644 --- a/lib/pleroma/web/api_spec/operations/account_operation.ex +++ b/lib/pleroma/web/api_spec/operations/account_operation.ex @@ -262,6 +262,12 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do :query, %Schema{allOf: [BooleanLike], default: true}, "Mute notifications in addition to statuses? Defaults to `true`." + ), + Operation.parameter( + :expires_in, + :query, + %Schema{type: :integer, default: 0}, + "Expire the mute in `expires_in` seconds. Default 0 for infinity" ) ], responses: %{ @@ -718,10 +724,17 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do nullable: true, description: "Mute notifications in addition to statuses? Defaults to true.", default: true + }, + expires_in: %Schema{ + type: :integer, + nullable: true, + description: "Expire the mute in `expires_in` seconds. Default 0 for infinity", + default: 0 } }, example: %{ - "notifications" => true + "notifications" => true, + "expires_in" => 86_400 } } end |