aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/operations/account_operation.ex
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2021-02-02 12:18:03 -0600
committerMark Felder <feld@feld.me>2021-02-02 12:18:03 -0600
commitd0b4a49f16038a36f63caaa007fe3aeca778aeec (patch)
tree64407ea2b16a8ce708daa16644f1c62dfa17bb7c /lib/pleroma/web/api_spec/operations/account_operation.ex
parentc118bdb8f0ab071ec99577826790dfc18057975c (diff)
parentd37d4106c627e0d3a06765c5b46da40cb8ac41fe (diff)
downloadpleroma-d0b4a49f16038a36f63caaa007fe3aeca778aeec.tar.gz
Merge branch 'develop' into a1batross-develop-patch-62810
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/account_operation.ex')
-rw-r--r--lib/pleroma/web/api_spec/operations/account_operation.ex7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/operations/account_operation.ex b/lib/pleroma/web/api_spec/operations/account_operation.ex
index a301ce090..3d451cd5a 100644
--- a/lib/pleroma/web/api_spec/operations/account_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/account_operation.ex
@@ -99,7 +99,10 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
summary: "Account",
operationId: "AccountController.show",
description: "View information about a profile.",
- parameters: [%Reference{"$ref": "#/components/parameters/accountIdOrNickname"}],
+ parameters: [
+ %Reference{"$ref": "#/components/parameters/accountIdOrNickname"},
+ with_relationships_param()
+ ],
responses: %{
200 => Operation.response("Account", "application/json", Account),
401 => Operation.response("Error", "application/json", ApiError),
@@ -347,7 +350,7 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
operationId: "AccountController.mutes",
description: "Accounts the user has muted.",
security: [%{"oAuth" => ["follow", "read:mutes"]}],
- parameters: pagination_params(),
+ parameters: [with_relationships_param() | pagination_params()],
responses: %{
200 => Operation.response("Accounts", "application/json", array_of_accounts())
}