Revert "Pleroma.Web.TwitterAPI.UtilController: dialyzer fixes"
This reverts commit 17f4251b19
.
This commit is contained in:
parent
674ae51d6a
commit
88a35b2865
|
@ -404,10 +404,10 @@ defp remote_interaction_request do
|
|||
title: "RemoteInteractionRequest",
|
||||
description: "POST body for remote interaction",
|
||||
type: :object,
|
||||
required: ["ap_id", "profile"],
|
||||
required: [:ap_id, :profile],
|
||||
properties: %{
|
||||
"ap_id" => %Schema{type: :string, description: "Profile or status ActivityPub ID"},
|
||||
"profile" => %Schema{type: :string, description: "Remote profile webfinger"}
|
||||
ap_id: %Schema{type: :string, description: "Profile or status ActivityPub ID"},
|
||||
profile: %Schema{type: :string, description: "Remote profile webfinger"}
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
|
@ -150,10 +150,7 @@ def remote_subscribe(conn, %{"status" => %{"status_id" => id, "profile" => profi
|
|||
end
|
||||
end
|
||||
|
||||
def remote_interaction(
|
||||
%{body_params: %{"ap_id" => ap_id, "profile" => profile}} = conn,
|
||||
_params
|
||||
) do
|
||||
def remote_interaction(%{body_params: %{ap_id: ap_id, profile: profile}} = conn, _params) do
|
||||
with {:ok, %{"subscribe_address" => template}} <- WebFinger.finger(profile) do
|
||||
conn
|
||||
|> json(%{url: String.replace(template, "{uri}", ap_id)})
|
||||
|
|
Loading…
Reference in New Issue