mirror of
https://github.com/friendica/friendica
synced 2024-12-23 07:20:15 +00:00
Merge pull request #11307 from annando/api-reply-fix
API: Fix "in_reply_to_status_id"
This commit is contained in:
commit
00aa905c15
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue