]> git.mxchange.org Git - friendica.git/commitdiff
Revert Post::selectOriginal to original logic
authorHank Grabowski <hankgrabowski@gmail.com>
Wed, 16 Aug 2023 18:37:24 +0000 (14:37 -0400)
committerHank Grabowski <hankgrabowski@gmail.com>
Wed, 16 Aug 2023 18:37:24 +0000 (14:37 -0400)
src/Model/Post.php

index 9e137ae379496f54895ee79e372aad8be4baf011..770ab083178f41b3ee8d3a14021bbb433581ca33 100644 (file)
@@ -263,10 +263,7 @@ class Post
                        return $result;
                }
 
-               $final_query_condition = ['uri-id' => $result['thr-parent-id']];
-               $final_query_condition = DBA::mergeConditions($final_query_condition, ['uid != 0']);
-               $final_params          = ['order' => ['id']];
-               return self::selectFirst($original_fields, $final_query_condition, $final_params);
+               return self::selectFirst($original_fields, ['uri-id' => $result['thr-parent-id'], 'uid' => [0, $result['uid']]], $params);
        }
 
        /**