diff options
author | rinpatch <rinpatch@sdf.org> | 2019-04-05 15:19:44 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-04-05 15:19:44 +0300 |
commit | f0f30019e1c9992cb420ba54457840cddaeb6a3a (patch) | |
tree | 667bdd7fb652aef9c4eea58dbad0be6b43644da3 /lib/pleroma/web/metadata | |
parent | 9c9eec62c2fb67507708dd9e5d3f80a098881a6e (diff) | |
download | pleroma-f0f30019e1c9992cb420ba54457840cddaeb6a3a.tar.gz |
Refactor html caching functions to have a key instead of a module, use more correct terminology and fix summaries in mastoapi
Diffstat (limited to 'lib/pleroma/web/metadata')
-rw-r--r-- | lib/pleroma/web/metadata/utils.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/metadata/utils.ex b/lib/pleroma/web/metadata/utils.ex index 23bbde1a6..58385a3d1 100644 --- a/lib/pleroma/web/metadata/utils.ex +++ b/lib/pleroma/web/metadata/utils.ex @@ -12,7 +12,7 @@ defmodule Pleroma.Web.Metadata.Utils do # html content comes from DB already encoded, decode first and scrub after |> HtmlEntities.decode() |> String.replace(~r/<br\s?\/?>/, " ") - |> HTML.get_cached_stripped_html_for_object(object, __MODULE__) + |> HTML.get_cached_stripped_html_for_activity(object, "metadata") |> Formatter.demojify() |> Formatter.truncate() end |