[API] Ensures user_show includes a status the user actually authored

2022.09-rc
Hypolite Petovan 2019-05-27 11:01:13 -04:00
rodzic f225752f8a
commit 661aca0f88
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1271,7 +1271,7 @@ function api_status_show($type, $item_id)
function api_get_last_status($ownerId, $uid) function api_get_last_status($ownerId, $uid)
{ {
$condition = [ $condition = [
'owner-id' => $ownerId, 'author-id'=> $ownerId,
'uid' => $uid, 'uid' => $uid,
'gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT], 'gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT],
'private' => false 'private' => false