]> git.mxchange.org Git - friendica.git/commitdiff
Use expected order for post medias
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 15 Feb 2022 14:53:24 +0000 (09:53 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 15 Feb 2022 14:53:24 +0000 (09:53 -0500)
- This fixes the wrong display order of post pictures

src/Model/Post/Media.php

index 07cad9cf6f09ee0d5ee8f0fa4ce2d87d56c87ec2..254b88115cb1f2d1f2754b95e96901336b9effbe 100644 (file)
@@ -518,7 +518,7 @@ class Media
                        $condition = DBA::mergeConditions($condition, ['type' => $types]);
                }
 
-               return DBA::selectToArray('post-media', [], $condition);
+               return DBA::selectToArray('post-media', [], $condition, ['order' => ['id']]);
        }
 
        /**