Commit 5fa508cc authored by rinpatch's avatar rinpatch
Browse files

Remove @providers and call Pleroma.config on runtime

parent bb43f4ce
......@@ -4,10 +4,8 @@
defmodule Pleroma.Web.Metadata do
alias Phoenix.HTML
@providers Pleroma.Config.get([__MODULE__, :providers], [])
def build_tags(params) do
Enum.reduce(@providers, "", fn parser, acc ->
Enum.reduce(Pleroma.Config.get([__MODULE__, :providers], []), "", fn parser, acc ->
rendered_html =
|> parser.build_tags()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment