From: eal Date: Mon, 20 Nov 2017 20:49:20 +0000 (+0200) Subject: MastoAPI: no more than 4 attachments. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=fa19de97ba6b135ac09dfede2dba33c40520dcf1;p=akkoma MastoAPI: no more than 4 attachments. --- diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 38abdb35f..5585a5605 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -96,7 +96,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do sensitive: sensitive, spoiler_text: object["summary"] || "", visibility: "public", - media_attachments: attachments, + media_attachments: attachments |> Enum.take(4), mentions: mentions, tags: [], # fix, application: %{