diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2021-01-26 11:58:54 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2021-02-01 14:11:11 +0300 |
commit | c3110c46f36c1cdfb1fb30855dfba709373548eb (patch) | |
tree | de153d2576d30eb137ef702b5f6c3e82ba0f65f2 /lib/pleroma/web/api_spec | |
parent | 08a2cb750de0fb7cdbdd044071cc10ad7f0096aa (diff) | |
download | pleroma-c3110c46f36c1cdfb1fb30855dfba709373548eb.tar.gz |
expanding filtration for home timeline
added local & remote statuses filtration for home timeline
Diffstat (limited to 'lib/pleroma/web/api_spec')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/timeline_operation.ex | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/pleroma/web/api_spec/operations/timeline_operation.ex b/lib/pleroma/web/api_spec/operations/timeline_operation.ex index e1ebdab38..2f44cb70d 100644 --- a/lib/pleroma/web/api_spec/operations/timeline_operation.ex +++ b/lib/pleroma/web/api_spec/operations/timeline_operation.ex @@ -25,6 +25,7 @@ defmodule Pleroma.Web.ApiSpec.TimelineOperation do security: [%{"oAuth" => ["read:statuses"]}], parameters: [ local_param(), + remote_param(), with_muted_param(), exclude_visibilities_param(), reply_visibility_param() | pagination_params() @@ -198,4 +199,13 @@ defmodule Pleroma.Web.ApiSpec.TimelineOperation do "Show only statuses with media attached?" ) end + + defp remote_param do + Operation.parameter( + :only_remote, + :query, + %Schema{allOf: [BooleanLike], default: false}, + "Show only remote statuses?" + ) + end end |