MRF: simple policy: fix media removal
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 4 Dec 2018 18:28:38 +0000 (18:28 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 4 Dec 2018 18:30:01 +0000 (18:30 +0000)
lib/pleroma/web/activity_pub/mrf/simple_policy.ex

index 86dcf5080532b1054bfba7e00a97d2c4114a9ff7..12fc3b18198029c596768c26c1df19d1cfc5a3f4 100644 (file)
@@ -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 =