projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d29fc5
)
MastoAPI: no more than 4 attachments.
author
eal
<eal@waifu.club>
Mon, 20 Nov 2017 20:49:20 +0000
(22:49 +0200)
committer
eal
<eal@waifu.club>
Mon, 20 Nov 2017 20:49:20 +0000
(22:49 +0200)
lib/pleroma/web/mastodon_api/views/status_view.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/mastodon_api/views/status_view.ex
b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 38abdb35f4889ae7fbbf904fbed360201a61f37e..5585a560572e582f7bb67483a7e3dd1ba7add741 100644
(file)
--- 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: %{