Allow more than 4 attachments per status in the backend#9325
Allow more than 4 attachments per status in the backend#9325ClearlyClaire wants to merge 1 commit intomastodon:masterfrom
Conversation
|
Even if they get processed, they get cleaned out later if they are not attached. I don't think this is a good idea |
|
I don't think silently dropping attachments is a good idea either?
Le 21 novembre 2018 20:59:07 GMT+01:00, Eugen Rochko <notifications@github.com> a écrit :
…Even if they get processed, they get cleaned out later if they are not
attached. I don't think this is a good idea
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#9325 (comment)
|
|
|
|
We could limit the number of processed attachments too |
|
Perhaps the "and more" link would load the original post on the original domain? That could prevent Mastodon from having to cache infinite media while still signalling that more than 4 attachments exist. |
|
To ThibG's first point just above, if someone wants to drop ten related images into their Mastodon instance, I'd much prefer to see them in one post than three. |
|
Yes it's no secret to me that given absolute freedom people would dump 100-image albums, ZIP archives, ISO images and whatnot into their posts. What's good for the poster isn't necessarily good for the reader, or the hoster. The system is designed around these constraints. I say, chop it off after 4 processed attachments. |
Surely ignoring the freedom of other systems entirely is a bad move? Maybe vanilla Mastodon doesn't need to locally cache more than 4, but some admins will want to cache more, or host more, etc. At the very least, the existence of attachments should be acknowledged, even if it is not supported on the local instance. |
|
I'd like to see this change as well. Only 4 attachments per post is pretty limiting: By default I'd go with allowing something like 16, while of course letting only first 4 show up in the preview. If more than 4 attachments exist on the post, a text over the previews can indicate how many more... for instance if there are 7 attachments it would say "+3 more" (4 + 3 = 7). A semi-related concern: Are mixed attachments officially supported? Can you attach both images, video, and audio in the same post? Ideally this can be allowed too with multiple attachments. |
| thread: replied_to_status, | ||
| conversation: conversation_from_uri(@object['conversation']), | ||
| media_attachment_ids: process_attachments.take(4).map(&:id), | ||
| media_attachment_ids: process_attachments.map(&:id), |
There was a problem hiding this comment.
Could you turn this into a PR that does not process more than 4 attachments? Most clients won't be able to display more than 4 right now, and the important thing is not storing stuff we don't use.
This commit allows more than 4 attachments per status in the backend. Such attachments were already processed, but not attached to any status.
Marked as WiP because changes to the WebUI would be needed to make more sense: