aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/twitter_api/representers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/web/twitter_api/representers')
-rw-r--r--lib/pleroma/web/twitter_api/representers/activity_representer.ex9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/pleroma/web/twitter_api/representers/activity_representer.ex b/lib/pleroma/web/twitter_api/representers/activity_representer.ex
index 2808192b0..d9dd352be 100644
--- a/lib/pleroma/web/twitter_api/representers/activity_representer.ex
+++ b/lib/pleroma/web/twitter_api/representers/activity_representer.ex
@@ -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)