diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-12-23 13:40:33 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-12-23 13:40:33 +0000 |
commit | 32dfc1d12a29004ef3d90c8405d25e49e74c80ab (patch) | |
tree | 20dad2f42f216185f9d3f542de05ef9847663a28 | |
parent | 71f6d9f418087a16ff266ef380b3290088e0d301 (diff) | |
download | pleroma-32dfc1d12a29004ef3d90c8405d25e49e74c80ab.tar.gz |
mastodon api: status view: remove obsolete peertube hack
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 46c559e3a..d06da812c 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -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"]) |