diff options
author | eal <eal@waifu.club> | 2017-11-20 22:49:20 +0200 |
---|---|---|
committer | eal <eal@waifu.club> | 2017-11-20 22:49:20 +0200 |
commit | fa19de97ba6b135ac09dfede2dba33c40520dcf1 (patch) | |
tree | e1989eb3d6a48bd6d04da957dcbdad9ccca08cac /lib | |
parent | 3d29fc5462e4b6bd9f0ee1f343ce971ef8606381 (diff) | |
download | pleroma-fa19de97ba6b135ac09dfede2dba33c40520dcf1.tar.gz |
MastoAPI: no more than 4 attachments.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 2 |
1 files changed, 1 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 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: %{ |