]> git.mxchange.org Git - friendica.git/commitdiff
[API] Ensures user_show includes a status the user actually authored
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 27 May 2019 15:01:13 +0000 (11:01 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 27 May 2019 15:01:13 +0000 (11:01 -0400)
include/api.php

index 0ca0bf838c983179e219b883dcfc3cf1c7aa19dc..dcd8335e11c991653c747695d299ad9125128460 100644 (file)
@@ -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