Remove @providers and call Pleroma.config on runtime

This commit is contained in:
rinpatch 2019-01-16 18:04:41 +03:00
parent bb43f4cee9
commit 5fa508cc2b
2 changed files with 2 additions and 4 deletions

View File

@ -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 =
params
|> parser.build_tags()