aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rin@patch.cx>2021-11-22 10:54:44 +0000
committermarcin mikołajczak <me@mkljczk.pl>2021-11-22 10:54:44 +0000
commit588bcbac55ebbaa1ea68792a1f60aa92c9915f69 (patch)
tree19af67a17f304cb6b48eb9f86e907d7cc95ca7b6
parent8e040e098b1176098123e52608a9a73adec2b5e5 (diff)
downloadpleroma-588bcbac55ebbaa1ea68792a1f60aa92c9915f69.tar.gz
Apply 2 suggestion(s) to 2 file(s)
-rw-r--r--lib/pleroma/web/api_spec/operations/account_operation.ex2
-rw-r--r--lib/pleroma/web/mastodon_api/controllers/account_controller.ex2
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/pleroma/web/api_spec/operations/account_operation.ex b/lib/pleroma/web/api_spec/operations/account_operation.ex
index 4aca16e72..8613f3a98 100644
--- a/lib/pleroma/web/api_spec/operations/account_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/account_operation.ex
@@ -331,7 +331,7 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
def note_operation do
%Operation{
tags: ["Account actions"],
- summary: "Create note",
+ summary: "Set a private note about a user.",
operationId: "AccountController.note",
security: [%{"oAuth" => ["follow", "write:accounts"]}],
requestBody: request_body("Parameters", note_request()),
diff --git a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
index a2c4920c1..5dfbecf5a 100644
--- a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
+++ b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
@@ -447,8 +447,6 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
) do
with {:ok, _user_note} <- UserNote.create(noter, target, comment) do
render(conn, "relationship.json", user: noter, target: target)
- else
- {:error, message} -> json_response(conn, :forbidden, %{error: message})
end
end