diff options
author | lain <lain@soykaf.club> | 2019-11-05 15:21:00 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-11-05 15:21:00 +0100 |
commit | 1bd1f62af55e01613e6362661b36a19091c87424 (patch) | |
tree | 519963a50af82c1a0b251f1405d663ba9ccd4714 /lib/pleroma/bbs/handler.ex | |
parent | faced6236b9e2ce9675cf743068f16098b744562 (diff) | |
parent | f11eebc18383be7d7b4b037582e4e1e08b74653b (diff) | |
download | pleroma-1bd1f62af55e01613e6362661b36a19091c87424.tar.gz |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel
Diffstat (limited to 'lib/pleroma/bbs/handler.ex')
-rw-r--r-- | lib/pleroma/bbs/handler.ex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pleroma/bbs/handler.ex b/lib/pleroma/bbs/handler.ex index fa838a4e4..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 @@ -97,7 +98,7 @@ defmodule Pleroma.BBS.Handler do |> Map.put("user", user) activities = - [user.ap_id | user.following] + [user.ap_id | Pleroma.User.following(user)] |> ActivityPub.fetch_activities(params) Enum.each(activities, fn activity -> |