logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 9b35a4e850ca9fe1d36b9157054bcde3b4e41083
parent: 3d29fc5462e4b6bd9f0ee1f343ce971ef8606381
Author: eal <eal@waifu.club>
Date:   Mon, 20 Nov 2017 20:55:27 +0000

Merge branch 'fix/mastoapi-attachment-count' into 'develop'

MastoAPI: no more than 4 attachments.

See merge request pleroma/pleroma!28

Diffstat:

Mlib/pleroma/web/mastodon_api/views/status_view.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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: %{