Introduce get_by_id in Activity, replace newlines with spaces

This commit is contained in:
rinpatch 2019-01-15 20:00:21 +03:00
commit ff6c9a5c96
4 changed files with 7 additions and 4 deletions

View file

@ -47,6 +47,7 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraph do
content
# html content comes from DB already encoded, decode first and scrub after
|> HtmlEntities.decode()
|> String.replace(~r/<br\s?\/?>/, " ")
|> HTML.strip_tags()
|> Formatter.truncate()
end