Apply 2 suggestion(s) to 2 file(s)
authorrinpatch <rin@patch.cx>
Mon, 22 Nov 2021 10:54:44 +0000 (10:54 +0000)
committermarcin mikołajczak <me@mkljczk.pl>
Mon, 22 Nov 2021 10:54:44 +0000 (10:54 +0000)
lib/pleroma/web/api_spec/operations/account_operation.ex
lib/pleroma/web/mastodon_api/controllers/account_controller.ex

index 4aca16e7226e53be2f9e1b59ef04098a2bf16356..8613f3a98729faab595d45eb4d786492d2ba3483 100644 (file)
@@ -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()),
index a2c4920c1e3942df97e7341969efcf7d454d7717..5dfbecf5a3835b51b9d2eb254fd6456c377a7d62 100644 (file)
@@ -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