aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorduponin <pwet@dupon.in>2022-05-19 01:38:13 +0200
committerduponin <pwet@dupon.in>2022-05-19 01:38:13 +0200
commitb128e1d6c5bbc78874d05af2676550de80ae85c7 (patch)
treef5ed554a0852af5cca496b4c5e6ec0dc94311410
parent5086d6d5e9ff68d6a7a82fd3ad6dbc0bad0b599c (diff)
downloadpleroma-b128e1d6c5bbc78874d05af2676550de80ae85c7.tar.gz
decode HTML to be human readable in BBS
-rw-r--r--lib/pleroma/bbs/handler.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/bbs/handler.ex b/lib/pleroma/bbs/handler.ex
index f1ac0c687..c2491a20c 100644
--- a/lib/pleroma/bbs/handler.ex
+++ b/lib/pleroma/bbs/handler.ex
@@ -43,7 +43,7 @@ defmodule Pleroma.BBS.Handler 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