AP and WebFinger need love here

This commit is contained in:
Mark Felder 2018-03-19 17:56:49 +00:00
parent 8d561f952f
commit 9a858621d6

View File

@ -321,7 +321,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
with {:ok, %{"ap_id" => ap_id}} when not is_nil(ap_id) <- WebFinger.finger(nickname) do with {:ok, %{"ap_id" => ap_id}} when not is_nil(ap_id) <- WebFinger.finger(nickname) do
make_user_from_ap_id(ap_id) make_user_from_ap_id(ap_id)
else else
_e -> {:error, "No ap id in webfinger"} _e -> {:error, "No AP id in WebFinger"}
end end
end end