From: William Pitcock Date: Tue, 4 Dec 2018 18:28:38 +0000 (+0000) Subject: MRF: simple policy: fix media removal X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b57d83e3c9988e46d30af3383789a7ad01f2eac3;p=akkoma MRF: simple policy: fix media removal --- diff --git a/lib/pleroma/web/activity_pub/mrf/simple_policy.ex b/lib/pleroma/web/activity_pub/mrf/simple_policy.ex index 86dcf5080..12fc3b181 100644 --- a/lib/pleroma/web/activity_pub/mrf/simple_policy.ex +++ b/lib/pleroma/web/activity_pub/mrf/simple_policy.ex @@ -23,7 +23,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SimplePolicy do defp check_media_removal( %{host: actor_host} = _actor_info, - %{"type" => "Create", "object" => %{"attachement" => child_attachment}} = object + %{"type" => "Create", "object" => %{"attachment" => child_attachment}} = object ) when length(child_attachment) > 0 do object =