From: Hypolite Petovan Date: Tue, 15 Feb 2022 14:53:24 +0000 (-0500) Subject: Use expected order for post medias X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9ae0234bb5cd66a00cbf5887cbddfa0fa1850125;p=friendica.git Use expected order for post medias - This fixes the wrong display order of post pictures --- diff --git a/src/Model/Post/Media.php b/src/Model/Post/Media.php index 07cad9cf6f..254b88115c 100644 --- a/src/Model/Post/Media.php +++ b/src/Model/Post/Media.php @@ -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']]); } /**