Skip to content
Snippets Groups Projects
Commit 9b35a4e8 authored by eal's avatar eal
Browse files

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

MastoAPI: no more than 4 attachments.

See merge request pleroma/pleroma!28
parents 3d29fc54 fa19de97
No related branches found
No related tags found
No related merge requests found
......@@ -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: %{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment