projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added get_stripped_html_for_object. Renamed a few things
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
views
/
status_view.ex
diff --git
a/lib/pleroma/web/mastodon_api/views/status_view.ex
b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 4d4681da828c5f41e0be47fd41f541db1c0c9f83..05ed602d595728f48af862152c8bb07cd65a4b49 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/
lib/pleroma/web/mastodon_api/views/status_view.ex
@@
-120,7
+120,7
@@
defmodule Pleroma.Web.MastodonAPI.StatusView do
content =
object
|> render_content()
- |>
HTML.filter_tags(User.html_filter_policy(opts[:for])
)
+ |>
Utils.get_scrubbed_html_for_object(User.html_filter_policy(opts[:for]), activity
)
%{
id: to_string(activity.id),