aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2021-01-26 11:58:54 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2021-02-01 14:11:11 +0300
commitc3110c46f36c1cdfb1fb30855dfba709373548eb (patch)
treede153d2576d30eb137ef702b5f6c3e82ba0f65f2 /lib/pleroma/web/api_spec
parent08a2cb750de0fb7cdbdd044071cc10ad7f0096aa (diff)
downloadpleroma-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.ex10
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