MastoAPI: no more than 4 attachments.

This commit is contained in:
eal 2017-11-20 22:49:20 +02:00
parent 3d29fc5462
commit fa19de97ba

View File

@ -96,7 +96,7 @@ def render("status.json", %{activity: %{data: %{"object" => object}} = activity}
sensitive: sensitive,
spoiler_text: object["summary"] || "",
visibility: "public",
media_attachments: attachments,
media_attachments: attachments |> Enum.take(4),
mentions: mentions,
tags: [], # fix,
application: %{