federator: use Activity.normalize() instead of directly using Activity.get_by_ap_id().

This commit is contained in:
William Pitcock 2018-06-18 21:20:18 +00:00
parent bc05548370
commit 5b240c3b18
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ def handle(:incoming_ap_doc, params) do
params = Utils.normalize_params(params)
with {:ok, _user} <- ap_enabled_actor(params["actor"]),
nil <- Activity.get_by_ap_id(params["id"]),
nil <- Activity.normalize(params["id"]),
{:ok, _activity} <- Transmogrifier.handle_incoming(params) do
else
%Activity{} ->