From 4803b9915731e0e75045acf747e0cee03f2b1112 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 8 Mar 2022 20:46:26 +0000 Subject: [PATCH] API: Fix "in_reply_to_status_id" --- src/Module/Api/Twitter/Statuses/Update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Api/Twitter/Statuses/Update.php b/src/Module/Api/Twitter/Statuses/Update.php index c2b830b661..0041c03a70 100644 --- a/src/Module/Api/Twitter/Statuses/Update.php +++ b/src/Module/Api/Twitter/Statuses/Update.php @@ -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; -- 2.39.5