mastodon api: status view: remove obsolete peertube hack
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 23 Dec 2018 13:40:33 +0000 (13:40 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sun, 23 Dec 2018 13:40:33 +0000 (13:40 +0000)
lib/pleroma/web/mastodon_api/views/status_view.ex

index 46c559e3ac0740687f64e24064d701e62e63dcf6..d06da812cd13d21c56341923b1cd46ac0082d0f5 100644 (file)
@@ -106,7 +106,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
     favorited = opts[:for] && opts[:for].ap_id in (object["likes"] || [])
 
     attachment_data = object["attachment"] || []
-    attachment_data = attachment_data ++ if object["type"] == "Video", do: [object], else: []
     attachments = render_many(attachment_data, StatusView, "attachment.json", as: :attachment)
 
     created_at = Utils.to_masto_date(object["published"])