projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags...
[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..e1ebdab389c781b643d4ce05ab0c0d907393340a 100644
(file)
--- a/
lib/pleroma/web/api_spec/operations/timeline_operation.ex
+++ b/
lib/pleroma/web/api_spec/operations/timeline_operation.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.TimelineOperation do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.TimelineOperation do
@@
-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