Remove a limit on attachments in Mastodon API and document the changes in responses from vanilla mastodon
This commit is contained in:
parent
1ce1b7b58d
commit
96c725328b
2 changed files with 10 additions and 1 deletions
9
docs/Differences-in-MastodonAPI-Responses.md
Normal file
9
docs/Differences-in-MastodonAPI-Responses.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Differences in Mastodon API responses from vanilla Mastodon
|
||||||
|
|
||||||
|
## Flake IDs
|
||||||
|
|
||||||
|
Pleroma uses 128-bit ids as opposed to Mastodon's 64 bits. However just like Mastodon's ids they are sortable strings
|
||||||
|
|
||||||
|
## Attachment cap
|
||||||
|
|
||||||
|
Some apps operate under the assumption that no more than 4 attachments ccan be returned, however Pleroma can return any amount of attachments
|
|
@ -166,7 +166,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
||||||
sensitive: sensitive,
|
sensitive: sensitive,
|
||||||
spoiler_text: object["summary"] || "",
|
spoiler_text: object["summary"] || "",
|
||||||
visibility: get_visibility(object),
|
visibility: get_visibility(object),
|
||||||
media_attachments: attachments |> Enum.take(4),
|
media_attachments: attachments,
|
||||||
mentions: mentions,
|
mentions: mentions,
|
||||||
tags: build_tags(tags),
|
tags: build_tags(tags),
|
||||||
application: %{
|
application: %{
|
||||||
|
|
Loading…
Reference in a new issue