projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into feature/expire...
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
operations
/
timeline_operation.ex
diff --git
a/lib/pleroma/web/api_spec/operations/timeline_operation.ex
b/lib/pleroma/web/api_spec/operations/timeline_operation.ex
index 8e19bace7a9285a5a6b18814a0120b72529376be..95720df9f38df9946c0c50dfae070fd25b629d85 100644
(file)
--- 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(),
security: [%{"oAuth" => ["read:statuses"]}],
parameters: [
local_param(),
+ instance_param(),
only_media_param(),
with_muted_param(),
exclude_visibilities_param(),
only_media_param(),
with_muted_param(),
exclude_visibilities_param(),
@@
-158,8
+159,17
@@
defmodule Pleroma.Web.ApiSpec.TimelineOperation do
)
end
)
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
defp with_muted_param do
- Operation.parameter(:with_muted, :query, BooleanLike, "Includeactivities by muted users")
+ Operation.parameter(:with_muted, :query, BooleanLike, "Include
activities by muted users")
end
defp exclude_visibilities_param do
end
defp exclude_visibilities_param do