From c95bbeadc3c0b9a256c0aa2a652b4eee1e0d394d Mon Sep 17 00:00:00 2001 From: Alexander Strizhakov Date: Tue, 19 May 2020 09:36:49 +0300 Subject: [PATCH] operation use helper function for empty object --- lib/pleroma/web/api_spec/operations/domain_mute_operation.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pleroma/web/api_spec/operations/domain_mute_operation.ex b/lib/pleroma/web/api_spec/operations/domain_mute_operation.ex index 54d708c45..943a3f369 100644 --- a/lib/pleroma/web/api_spec/operations/domain_mute_operation.ex +++ b/lib/pleroma/web/api_spec/operations/domain_mute_operation.ex @@ -56,9 +56,7 @@ defmodule Pleroma.Web.ApiSpec.DomainMuteOperation do operationId: "DomainMuteController.delete", requestBody: domain_mute_request(), security: [%{"oAuth" => ["follow", "write:mutes"]}], - responses: %{ - 200 => Operation.response("Empty object", "application/json", %Schema{type: :object}) - } + responses: %{200 => empty_object_response()} } end