Use Pleroma.Utils.compile_dir/1 in Pleroma.HTML.compile_scrubbers/0
This commit is contained in:
parent
c098dec473
commit
b7a57d8e38
1 changed files with 1 additions and 3 deletions
|
@ -10,9 +10,7 @@ def compile_scrubbers do
|
||||||
dir = Path.join(:code.priv_dir(:pleroma), "scrubbers")
|
dir = Path.join(:code.priv_dir(:pleroma), "scrubbers")
|
||||||
|
|
||||||
dir
|
dir
|
||||||
|> File.ls!()
|
|> Pleroma.Utils.compile_dir()
|
||||||
|> Enum.map(&Path.join(dir, &1))
|
|
||||||
|> Kernel.ParallelCompiler.compile()
|
|
||||||
|> case do
|
|> case do
|
||||||
{:error, _errors, _warnings} ->
|
{:error, _errors, _warnings} ->
|
||||||
raise "Compiling scrubbers failed"
|
raise "Compiling scrubbers failed"
|
||||||
|
|
Loading…
Reference in a new issue