Commit fa19de97 authored by eal's avatar eal

MastoAPI: no more than 4 attachments.

parent 3d29fc54
Pipeline #301 passed with stage
in 2 minutes and 48 seconds
......@@ -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: %{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment