commit: b128e1d6c5bbc78874d05af2676550de80ae85c7
parent 5086d6d5e9ff68d6a7a82fd3ad6dbc0bad0b599c
Author: duponin <pwet@dupon.in>
Date:   Thu, 19 May 2022 01:38:13 +0200
decode HTML to be human readable in BBS
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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