projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c098dec
)
Use Pleroma.Utils.compile_dir/1 in Pleroma.HTML.compile_scrubbers/0
author
Egor Kislitsyn
<egor@kislitsyn.com>
Mon, 9 Dec 2019 17:38:01 +0000
(
00:38
+0700)
committer
Egor Kislitsyn
<egor@kislitsyn.com>
Mon, 9 Dec 2019 17:38:01 +0000
(
00:38
+0700)
lib/pleroma/html.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/html.ex
b/lib/pleroma/html.ex
index 2cae29f35170fe5b952551b405db677c8baba9f2..11513106eb643769c72701865459cd9eb70a22dc 100644
(file)
--- 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"