aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-12-10 00:38:01 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-12-10 00:38:01 +0700
commitb7a57d8e388a03d7d92248aa8c583365bde9d0b1 (patch)
tree26621b106c22e3e7c4c51162f0848c77a985f2d8
parentc098dec47344303bc00456bfbfc0d769abd8f199 (diff)
downloadpleroma-b7a57d8e388a03d7d92248aa8c583365bde9d0b1.tar.gz
Use Pleroma.Utils.compile_dir/1 in Pleroma.HTML.compile_scrubbers/0
-rw-r--r--lib/pleroma/html.ex4
1 files changed, 1 insertions, 3 deletions
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"