mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 18:17:55 +00:00
federator: use Activity.normalize() instead of directly using Activity.get_by_ap_id().
This commit is contained in:
parent
bc05548370
commit
5b240c3b18
|
@ -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{} ->
|
||||
|
|
Loading…
Reference in a new issue