Commit 4cf627a1 authored by Eugenij's avatar Eugenij

Remove unused functions from PleromaAccountOperation

parent 8c0b21dd
......@@ -40,26 +40,6 @@ def confirmation_resend_operation do
}
end
def update_nickname_operation do
%Operation{
tags: ["Accounts", "MFC"],
summary: "Update user nickname",
operationId: "PleromaAPI.AccountController.update_nickname",
requestBody: request_body("Parameters", update_nickname_request(), required: true),
security: [%{"oAuth" => ["write:accounts"]}],
responses: %{
200 =>
Operation.response("Response", "application/json", %Schema{
type: :object,
properties: %{
nickname: %Schema{type: :string}
}
}),
422 => Operation.response("Bad Request", "application/json", ApiError)
}
}
end
def favourites_operation do
%Operation{
tags: ["Accounts"],
......@@ -114,15 +94,4 @@ defp id_param do
required: true
)
end
defp update_nickname_request do
%Schema{
title: "PleromaAccountUpdateNicknameRequest",
type: :object,
properties: %{
nickname: %Schema{type: :string},
username: %Schema{type: :string}
}
}
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment