aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2017-11-20 22:49:20 +0200
committereal <eal@waifu.club>2017-11-20 22:49:20 +0200
commitfa19de97ba6b135ac09dfede2dba33c40520dcf1 (patch)
treee1989eb3d6a48bd6d04da957dcbdad9ccca08cac /lib
parent3d29fc5462e4b6bd9f0ee1f343ce971ef8606381 (diff)
downloadpleroma-fa19de97ba6b135ac09dfede2dba33c40520dcf1.tar.gz
MastoAPI: no more than 4 attachments.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex2
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: %{