twitter api: add support for user-specified html policy
This commit is contained in:
parent
735cdfb848
commit
2f5b026548
3 changed files with 3 additions and 3 deletions
|
|
@ -168,7 +168,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do
|
|||
{summary, content} = ActivityView.render_content(object)
|
||||
|
||||
html =
|
||||
HTML.filter_tags(content)
|
||||
HTML.filter_tags(content, User.html_filter_policy(opts[:for]))
|
||||
|> Formatter.emojify(object["emoji"])
|
||||
|
||||
video =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue