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
1 changed files with 1 additions and 8 deletions

View File

@ -171,14 +171,7 @@ def to_map(
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)