aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/bbs/handler.ex
diff options
context:
space:
mode:
authorkaniini <ariadne@dereferenced.org>2019-11-03 16:18:19 +0000
committerkaniini <ariadne@dereferenced.org>2019-11-03 16:18:19 +0000
commit61bcd4595fa61bd79a7bcb553968df9fc8306499 (patch)
treec1ac1eba2dc4a942e1d4a0e43aaf69e9db33a28c /lib/pleroma/bbs/handler.ex
parent9d8da9ea1501203662e08b6814ac324415653f3e (diff)
parent55ef88ef95ecda94ea416bd3a8492f992488ea83 (diff)
downloadpleroma-61bcd4595fa61bd79a7bcb553968df9fc8306499.tar.gz
Merge branch 'feature/fast_sanitize' into 'develop'
Switching to FastSanitize See merge request pleroma/pleroma!1916
Diffstat (limited to 'lib/pleroma/bbs/handler.ex')
-rw-r--r--lib/pleroma/bbs/handler.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/bbs/handler.ex b/lib/pleroma/bbs/handler.ex
index b0e9ebbd0..054d422b0 100644
--- a/lib/pleroma/bbs/handler.ex
+++ b/lib/pleroma/bbs/handler.ex
@@ -5,6 +5,7 @@
defmodule Pleroma.BBS.Handler do
use Sshd.ShellHandler
alias Pleroma.Activity
+ alias Pleroma.HTML
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Web.CommonAPI
@@ -44,7 +45,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(HtmlSanitizeEx.strip_tags(status.content))
+ IO.puts(HTML.strip_tags(status.content))
IO.puts("")
end