Strip unsafe html on output in TwAPI.
This commit is contained in:
parent
a9bfbcae80
commit
8feec8d390
2 changed files with 3 additions and 3 deletions
|
|
@ -105,7 +105,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do
|
|||
"id" => activity.id,
|
||||
"user" => UserRepresenter.to_map(user, opts),
|
||||
"attentions" => [],
|
||||
"statusnet_html" => content,
|
||||
"statusnet_html" => HtmlSanitizeEx.basic_html(content),
|
||||
"text" => HtmlSanitizeEx.strip_tags(content),
|
||||
"is_local" => true,
|
||||
"is_post_verb" => true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue