Merge branch 'bugfix/mrf-simple-media-removal' into 'develop'

bugfix: MRF simple media removal

See merge request pleroma/pleroma!497
This commit is contained in:
lambda 2018-12-04 18:36:34 +00:00
commit 4a602230e4

View file

@ -23,7 +23,7 @@ defp check_reject(%{host: actor_host} = _actor_info, object) 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 =