Revert "Pleroma.Web.TwitterAPI.UtilController: dialyzer fixes"

This reverts commit 17f4251b19.
This commit is contained in:
Mark Felder 2024-01-30 14:19:54 -05:00
commit 88a35b2865
2 changed files with 4 additions and 7 deletions

View file

@ -150,10 +150,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
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)})