end
def get_cached_by_nickname_or_id(nickname_or_id) do
- get_cached_by_id(nickname_or_id) || get_cached_by_nickname(nickname_or_id)
+ get_cached_by_id(nickname_or_id) || get_cached_by_nickname(nickname_or_id)
end
def get_by_nickname(nickname) do
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()