|
|
@ -10,9 +10,7 @@ defmodule Pleroma.HTML 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"
|
|
|
|