[#2349] Post-merge fix.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Tue, 28 Apr 2020 17:04:25 +0000 (20:04 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Tue, 28 Apr 2020 17:04:25 +0000 (20:04 +0300)
lib/pleroma/web/api_spec/operations/account_operation.ex

index 2efe6e9013e265d799e42547d17f79c21c95e8e9..64e2e43c45b0531a65903bde9241891239b3a254 100644 (file)
@@ -294,13 +294,13 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
     }
   end
 
-  def follows_operation do
+  def follow_by_uri_operation do
     %Operation{
       tags: ["accounts"],
-      summary: "Follows",
+      summary: "Follow by URI",
       operationId: "AccountController.follows",
       security: [%{"oAuth" => ["follow", "write:follows"]}],
-      requestBody: request_body("Parameters", follows_request(), required: true),
+      requestBody: request_body("Parameters", follow_by_uri_request(), required: true),
       responses: %{
         200 => Operation.response("Account", "application/json", AccountRelationship),
         400 => Operation.response("Error", "application/json", ApiError),
@@ -615,7 +615,7 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
     }
   end
 
-  defp follows_request do
+  defp follow_by_uri_request do
     %Schema{
       title: "AccountFollowsRequest",
       description: "POST body for muting an account",