From: Mark Felder Date: Fri, 11 Sep 2020 21:59:45 +0000 (-0500) Subject: Ensure we only apply NSFW Simple policy on parsable objects X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c0b36621f1149734e97f268e267202cc53700abb;p=akkoma Ensure we only apply NSFW Simple policy on parsable objects --- diff --git a/lib/pleroma/web/activity_pub/mrf/simple_policy.ex b/lib/pleroma/web/activity_pub/mrf/simple_policy.ex index bb193475a..161177727 100644 --- a/lib/pleroma/web/activity_pub/mrf/simple_policy.ex +++ b/lib/pleroma/web/activity_pub/mrf/simple_policy.ex @@ -66,7 +66,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.SimplePolicy do "type" => "Create", "object" => child_object } = object - ) do + ) + when is_map(child_object) do media_nsfw = Config.get([:mrf_simple, :media_nsfw]) |> MRF.subdomains_regex()