decode HTML to be human readable in BBS

This commit is contained in:
duponin 2022-05-19 01:38:13 +02:00
parent 5086d6d5e9
commit b128e1d6c5
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ defp loop(state) do
def puts_activity(activity) do
status = Pleroma.Web.MastodonAPI.StatusView.render("show.json", %{activity: activity})
IO.puts("-- #{status.id} by #{status.account.display_name} (#{status.account.acct})")
IO.puts(HTML.strip_tags(status.content))
IO.puts(status.content |> HTML.strip_tags() |> HtmlEntities.decode())
IO.puts("")
end