diff options
author | lain <lain@soykaf.club> | 2020-11-04 14:54:53 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-11-04 14:54:53 +0000 |
commit | 5db4c823b2e345155fbed48e7e7d12cab87eca72 (patch) | |
tree | 52cea8f21a2746c496ec9fa733c6c987d581ff0a /lib/pleroma/web/api_spec | |
parent | 9c09ea01aa8c93e02b5697e27f0a8458b624b161 (diff) | |
parent | cb3cd3a761d96a08b1b55f5b277795822aa7e1d7 (diff) | |
download | pleroma-5db4c823b2e345155fbed48e7e7d12cab87eca72.tar.gz |
Merge branch 'restrict-domain' into 'develop'
View a remote server's timeline
See merge request pleroma/pleroma!2713
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 1b5ad796f..95720df9f 100644 --- a/lib/pleroma/web/api_spec/operations/timeline_operation.ex +++ b/lib/pleroma/web/api_spec/operations/timeline_operation.ex @@ -59,6 +59,7 @@ defmodule Pleroma.Web.ApiSpec.TimelineOperation do security: [%{"oAuth" => ["read:statuses"]}], parameters: [ local_param(), + instance_param(), only_media_param(), with_muted_param(), exclude_visibilities_param(), @@ -158,6 +159,15 @@ defmodule Pleroma.Web.ApiSpec.TimelineOperation do ) end + defp instance_param do + Operation.parameter( + :instance, + :query, + %Schema{type: :string}, + "Show only statuses from the given domain" + ) + end + defp with_muted_param do Operation.parameter(:with_muted, :query, BooleanLike, "Include activities by muted users") end |