From 661aca0f88897d759579dba3b1502355c0b41068 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 27 May 2019 11:01:13 -0400 Subject: [PATCH] [API] Ensures user_show includes a status the user actually authored --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index 0ca0bf838c..dcd8335e11 100644 --- a/include/api.php +++ b/include/api.php @@ -1271,7 +1271,7 @@ function api_status_show($type, $item_id) function api_get_last_status($ownerId, $uid) { $condition = [ - 'owner-id' => $ownerId, + 'author-id'=> $ownerId, 'uid' => $uid, 'gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT], 'private' => false