Strip unsafe html on output in TwAPI.

This commit is contained in:
Roger Braun 2017-06-18 13:40:35 +02:00
commit 8feec8d390
2 changed files with 3 additions and 3 deletions

View file

@ -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,