twitter api: activity representer: remove peertube hack

This commit is contained in:
William Pitcock 2018-12-23 13:53:25 +00:00
parent 9f48485f64
commit 79b51a97fe

View File

@ -171,14 +171,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do
HTML.filter_tags(content, User.html_filter_policy(opts[:for])) HTML.filter_tags(content, User.html_filter_policy(opts[:for]))
|> Formatter.emojify(object["emoji"]) |> Formatter.emojify(object["emoji"])
video = attachments = object["attachment"] || []
if object["type"] == "Video" do
[object]
else
[]
end
attachments = (object["attachment"] || []) ++ video
reply_parent = Activity.get_in_reply_to_activity(activity) reply_parent = Activity.get_in_reply_to_activity(activity)