projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MastoAPI: Show source field when deleting
[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 1b89035d47c05d64e46f2dd924c252d0144dc0e9..8e19bace7a9285a5a6b18814a0120b72529376be 100644
(file)
--- a/
lib/pleroma/web/api_spec/operations/timeline_operation.ex
+++ b/
lib/pleroma/web/api_spec/operations/timeline_operation.ex
@@
-27,8
+27,7
@@
defmodule Pleroma.Web.ApiSpec.TimelineOperation do
local_param(),
with_muted_param(),
exclude_visibilities_param(),
local_param(),
with_muted_param(),
exclude_visibilities_param(),
- reply_visibility_param(),
- with_relationships_param() | pagination_params()
+ reply_visibility_param() | pagination_params()
],
operationId: "TimelineController.home",
responses: %{
],
operationId: "TimelineController.home",
responses: %{
@@
-44,7
+43,7
@@
defmodule Pleroma.Web.ApiSpec.TimelineOperation do
description:
"View statuses with a “direct” privacy, from your account or in your notifications",
deprecated: true,
description:
"View statuses with a “direct” privacy, from your account or in your notifications",
deprecated: true,
- parameters:
pagination_params()
,
+ parameters:
[with_muted_param() | pagination_params()]
,
security: [%{"oAuth" => ["read:statuses"]}],
operationId: "TimelineController.direct",
responses: %{
security: [%{"oAuth" => ["read:statuses"]}],
operationId: "TimelineController.direct",
responses: %{
@@
-63,8
+62,7
@@
defmodule Pleroma.Web.ApiSpec.TimelineOperation do
only_media_param(),
with_muted_param(),
exclude_visibilities_param(),
only_media_param(),
with_muted_param(),
exclude_visibilities_param(),
- reply_visibility_param(),
- with_relationships_param() | pagination_params()
+ reply_visibility_param() | pagination_params()
],
operationId: "TimelineController.public",
responses: %{
],
operationId: "TimelineController.public",
responses: %{
@@
-109,8
+107,7
@@
defmodule Pleroma.Web.ApiSpec.TimelineOperation do
local_param(),
only_media_param(),
with_muted_param(),
local_param(),
only_media_param(),
with_muted_param(),
- exclude_visibilities_param(),
- with_relationships_param() | pagination_params()
+ exclude_visibilities_param() | pagination_params()
],
operationId: "TimelineController.hashtag",
responses: %{
],
operationId: "TimelineController.hashtag",
responses: %{
@@
-134,8
+131,7
@@
defmodule Pleroma.Web.ApiSpec.TimelineOperation do
required: true
),
with_muted_param(),
required: true
),
with_muted_param(),
- exclude_visibilities_param(),
- with_relationships_param() | pagination_params()
+ exclude_visibilities_param() | pagination_params()
],
operationId: "TimelineController.list",
responses: %{
],
operationId: "TimelineController.list",
responses: %{
@@
-153,10
+149,6
@@
defmodule Pleroma.Web.ApiSpec.TimelineOperation do
}
end
}
end
- defp with_relationships_param do
- Operation.parameter(:with_relationships, :query, BooleanLike, "Include relationships")
- end
-
defp local_param do
Operation.parameter(
:local,
defp local_param do
Operation.parameter(
:local,