Skip to content

Remove a limit on attachments in Mastodon API and document the changes in responses from vanilla Mastodon

rinpatch requested to merge mastoapi-stop-capping-attachments into develop

I had a discussion with @lambadalambda about serving more than 4 attachments, where I disagreed about creating a pleroma extension instead of just lifting the cap on attachments. He said that we will just lift the cap it if I could test it with every app on our compatibility list. I created a post with 7 attachments and tested with the following clients:

  • Subway Tooter (previews only 4 but possible to open all 7)
  • Tusky (previews only 4 but possible to open all 7)
  • Twidere (previews only 4 but possible to open all 7)
  • Roma desktop (shows all 7)
  • Roma Android (didn’t test because I don’t have google services installed but I suppose the same as Tusky since it is a fork)
  • Fedilab (previews only 4 but possible to open all 7)
  • Amaroq (previews only 4 but possible to open all 7)
  • Brutaldon (weird positioning but it does not crash and it is possible to view the first 4)
  • Tootdon (does not work but @lambadalambda pointed out that it crashes with pleroma anyway. btw consider removing it from the list since it is the only proprietary app there and there were also reports about it having weird telementry)

This MR also includes a doc covering the difference in responses from vanilla Mastodon API to make client app developers' life a little bit easier.

Edited by rinpatch

Merge request reports