logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 588bcbac55ebbaa1ea68792a1f60aa92c9915f69
parent 8e040e098b1176098123e52608a9a73adec2b5e5
Author: rinpatch <rin@patch.cx>
Date:   Mon, 22 Nov 2021 10:54:44 +0000

Apply 2 suggestion(s) to 2 file(s)

Diffstat:

Mlib/pleroma/web/api_spec/operations/account_operation.ex2+-
Mlib/pleroma/web/mastodon_api/controllers/account_controller.ex2--
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git 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 @@ -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