From: William Pitcock Date: Mon, 18 Jun 2018 21:20:18 +0000 (+0000) Subject: federator: use Activity.normalize() instead of directly using Activity.get_by_ap_id(). X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5b240c3b187260498cbebbd540872975fb30bafe;p=akkoma federator: use Activity.normalize() instead of directly using Activity.get_by_ap_id(). --- diff --git a/lib/pleroma/web/federator/federator.ex b/lib/pleroma/web/federator/federator.ex index 8ca530031..ccefb0bdf 100644 --- a/lib/pleroma/web/federator/federator.ex +++ b/lib/pleroma/web/federator/federator.ex @@ -95,7 +95,7 @@ defmodule Pleroma.Web.Federator 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{} ->