]> git.mxchange.org Git - friendica.git/commitdiff
API: Fix "in_reply_to_status_id"
authorMichael <heluecht@pirati.ca>
Tue, 8 Mar 2022 20:46:26 +0000 (20:46 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 8 Mar 2022 20:46:26 +0000 (20:46 +0000)
src/Module/Api/Twitter/Statuses/Update.php

index c2b830b661e153d068940f715725b96e75f19650..0041c03a70bbcd1cd452a1fa43eef0cb16778a83 100644 (file)
@@ -110,7 +110,7 @@ class Update extends BaseApi
                }
 
                if ($request['in_reply_to_status_id']) {
-                       $parent = Post::selectFirst(['uri'], ['id' => $request['in_reply_to_status_id'], 'uid' => [0, $uid]]);
+                       $parent = Post::selectFirst(['uri'], ['uri-id' => $request['in_reply_to_status_id'], 'uid' => [0, $uid]]);
 
                        $item['thr-parent']  = $parent['uri'];
                        $item['gravity']     = GRAVITY_COMMENT;