mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 10:09:02 +00:00
mastodon api: status view: remove obsolete peertube hack
This commit is contained in:
parent
71f6d9f418
commit
32dfc1d12a
|
@ -106,7 +106,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
||||||
favorited = opts[:for] && opts[:for].ap_id in (object["likes"] || [])
|
favorited = opts[:for] && opts[:for].ap_id in (object["likes"] || [])
|
||||||
|
|
||||||
attachment_data = object["attachment"] || []
|
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)
|
attachments = render_many(attachment_data, StatusView, "attachment.json", as: :attachment)
|
||||||
|
|
||||||
created_at = Utils.to_masto_date(object["published"])
|
created_at = Utils.to_masto_date(object["published"])
|
||||||
|
|
Loading…
Reference in a new issue