From ba967386f4f2c1d5977f1ac4ac4473ad892e366b Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Wed, 16 Aug 2023 14:37:24 -0400 Subject: [PATCH] Revert Post::selectOriginal to original logic --- src/Model/Post.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Model/Post.php b/src/Model/Post.php index 9e137ae37..770ab0831 100644 --- a/src/Model/Post.php +++ b/src/Model/Post.php @@ -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); } /**