MastoAPI: no more than 4 attachments.
This commit is contained in:
parent
3d29fc5462
commit
fa19de97ba
@ -96,7 +96,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
|||||||
sensitive: sensitive,
|
sensitive: sensitive,
|
||||||
spoiler_text: object["summary"] || "",
|
spoiler_text: object["summary"] || "",
|
||||||
visibility: "public",
|
visibility: "public",
|
||||||
media_attachments: attachments,
|
media_attachments: attachments |> Enum.take(4),
|
||||||
mentions: mentions,
|
mentions: mentions,
|
||||||
tags: [], # fix,
|
tags: [], # fix,
|
||||||
application: %{
|
application: %{
|
||||||
|
Loading…
Reference in New Issue
Block a user