Added get_stripped_html_for_object. Renamed a few things

This commit is contained in:
Rin Toshaka 2018-12-30 16:51:16 +01:00
commit d9f40b05b3
3 changed files with 32 additions and 9 deletions

View file

@ -120,7 +120,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
content =
object
|> render_content()
|> Utils.get_scrubbed_html(User.html_filter_policy(opts[:for]), activity)
|> Utils.get_scrubbed_html_for_object(User.html_filter_policy(opts[:for]), activity)
%{
id: to_string(activity.id),