From: William Pitcock Date: Mon, 18 Jun 2018 20:57:38 +0000 (+0000) Subject: user: use Object.normalize() instead of Object.get_by_ap_id() directly. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=47189531c55ac0c3f671298e6efa8c020ce5853a;p=akkoma user: use Object.normalize() instead of Object.get_by_ap_id() directly. --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 94f16c3c0..df22d29a8 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -607,7 +607,7 @@ defmodule Pleroma.User do |> Enum.each(fn activity -> case activity.data["type"] do "Create" -> - ActivityPub.delete(Object.get_by_ap_id(activity.data["object"]["id"])) + ActivityPub.delete(Object.normalize(activity.data["object"])) # TODO: Do something with likes, follows, repeats. _ ->