twitter api: activity representer: remove peertube hack
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 23 Dec 2018 13:53:25 +0000 (13:53 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sun, 23 Dec 2018 14:00:50 +0000 (14:00 +0000)
lib/pleroma/web/twitter_api/representers/activity_representer.ex

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