From: Egor Kislitsyn Date: Mon, 9 Dec 2019 17:38:01 +0000 (+0700) Subject: Use Pleroma.Utils.compile_dir/1 in Pleroma.HTML.compile_scrubbers/0 X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=b7a57d8e388a03d7d92248aa8c583365bde9d0b1;p=akkoma Use Pleroma.Utils.compile_dir/1 in Pleroma.HTML.compile_scrubbers/0 --- diff --git a/lib/pleroma/html.ex b/lib/pleroma/html.ex index 2cae29f35..11513106e 100644 --- a/lib/pleroma/html.ex +++ b/lib/pleroma/html.ex @@ -10,9 +10,7 @@ defmodule Pleroma.HTML do dir = Path.join(:code.priv_dir(:pleroma), "scrubbers") dir - |> File.ls!() - |> Enum.map(&Path.join(dir, &1)) - |> Kernel.ParallelCompiler.compile() + |> Pleroma.Utils.compile_dir() |> case do {:error, _errors, _warnings} -> raise "Compiling scrubbers failed"