Ensure we only apply NSFW Simple policy on parsable objects

This commit is contained in:
Mark Felder 2020-09-11 16:59:45 -05:00
parent 9fb88c814d
commit c0b36621f1

View file

@ -66,7 +66,8 @@ defp check_media_nsfw(
"type" => "Create",
"object" => child_object
} = object
) do
)
when is_map(child_object) do
media_nsfw =
Config.get([:mrf_simple, :media_nsfw])
|> MRF.subdomains_regex()