Add delete to TwAPI representer correctly.
This commit is contained in:
parent
1f9a5272e1
commit
632e1f7943
2 changed files with 9 additions and 1 deletions
|
|
@ -100,7 +100,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do
|
|||
created_at = created_at |> Utils.date_to_asctime
|
||||
|
||||
%{
|
||||
"id" => activity.data["object"],
|
||||
"id" => activity.id,
|
||||
"uri" => activity.data["object"],
|
||||
"user" => UserView.render("show.json", %{user: user, for: opts[:for]}),
|
||||
"attentions" => [],
|
||||
"statusnet_html" => "deleted notice {{tag",
|
||||
|
|
@ -135,6 +136,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do
|
|||
|
||||
%{
|
||||
"id" => activity.id,
|
||||
"uri" => activity.data["object"]["id"],
|
||||
"user" => UserView.render("show.json", %{user: user, for: opts[:for]}),
|
||||
"statusnet_html" => HtmlSanitizeEx.basic_html(content) |> Formatter.finmojifiy,
|
||||
"text" => HtmlSanitizeEx.strip_tags(content),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue