Comment on Hello how can I disable the random order of photos in a post? I upload them in
utzer@f.utzer.de@f.utzer.de 2 days ago Sure.
Link to post
f.utzer.de/display/f5430ab4-20…
First screenshot local on Friendica with random order
Second screenshot remote on Pleroma with correct order (correct as uploaded)
Attachment: f.utzer.de ↗
randompenguin@dillyofapickle.com 1 day ago
@randompenguin yes, randomized but only when opened locally. Did you have a look at my post on your end, can you share a screenshot how the photos are arranged on your end?
So my hypothesis is, that the random order is only stored locally after transmission to remote or even randomized only when looked at locally.
randompenguin@dillyofapickle.com 1 day ago
@utzer On my end it looks the same as your screencap:
So it's not just on your server, it's coming through to the one I'm on that way too.
The quote share in your post above, however, doesn't use the masonry layout and shows the images in a linear column in what you said was the upload order.
@randompenguin well then.
The second screenshot in my post was how the photos are sorted on Pleroma (another AP social network), there the order was as uploaded.
So this means (only) Friendica shuffles the photos. Or at least Pleroma does not.
I am used to it, it happens since some time.
Can you reproduce it when you create a post?
Maybe take a photo with 1 thing in it, one with 2 things in it and a third one with 3 things in it.
@randompenguin here you have the original photos with the original names. If it helps somehow.
files.utzer.de/download/9b5d0c…
randompenguin@dillyofapickle.com 1 day ago
@utzer I don't think it has anything to do with the original filenames, or for that matter the order you uploaded them. They are supposed to appear in the order you attach them to your post.
But that is not happening. If you go to edit the post you'll see they are attached in your preferred order, they just aren't getting displayed that way in Friendica. And it's not the masonry layout function that's changing the order. The "Post Media Collection" array is already re-ordered before it ever gets to the masonry layout code. It's actually getting changed somewhere before the PostMedia code too. But I can't figure out where the order is being changed or why.
In the Release Candidate I added code to the post composer preview to show the masonry layout, but it has to use jQuery on the frontend, not the actual masonry code from the backend. Ironically my "simulation" of the masonry layout for the preview shows the images in the correct order while, after publishing, the actual masonry code does not.