forked from AkkomaGang/akkoma
[#2349] Post-merge fix.
This commit is contained in:
parent
908cf22a6c
commit
4c0e53367a
1 changed files with 4 additions and 4 deletions
|
@ -294,13 +294,13 @@ def unblock_operation do
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def follows_operation do
|
def follow_by_uri_operation do
|
||||||
%Operation{
|
%Operation{
|
||||||
tags: ["accounts"],
|
tags: ["accounts"],
|
||||||
summary: "Follows",
|
summary: "Follow by URI",
|
||||||
operationId: "AccountController.follows",
|
operationId: "AccountController.follows",
|
||||||
security: [%{"oAuth" => ["follow", "write: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: %{
|
responses: %{
|
||||||
200 => Operation.response("Account", "application/json", AccountRelationship),
|
200 => Operation.response("Account", "application/json", AccountRelationship),
|
||||||
400 => Operation.response("Error", "application/json", ApiError),
|
400 => Operation.response("Error", "application/json", ApiError),
|
||||||
|
@ -615,7 +615,7 @@ defp array_of_relationships do
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp follows_request do
|
defp follow_by_uri_request do
|
||||||
%Schema{
|
%Schema{
|
||||||
title: "AccountFollowsRequest",
|
title: "AccountFollowsRequest",
|
||||||
description: "POST body for muting an account",
|
description: "POST body for muting an account",
|
||||||
|
|
Loading…
Reference in a new issue