diff options
Diffstat (limited to 'include/api.php')
-rw-r--r-- | include/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/api.php b/include/api.php index 3c692cf74..2a02458d7 100644 --- a/include/api.php +++ b/include/api.php @@ -303,7 +303,7 @@ 'uid' => intval($uinfo[0]['uid']), 'id' => intval($uinfo[0]['cid']), 'name' => $uinfo[0]['name'], - 'screen_name' => $uinfo[0]['nick'], + 'screen_name' => (($uinfo[0]['nick']) ? $uinfo[0]['nick'] : $uinfo[0]['name']), 'location' => ($usr) ? $usr[0]['default-location'] : '', 'profile_image_url' => $uinfo[0]['micro'], 'url' => $uinfo[0]['url'], @@ -356,7 +356,7 @@ 'uid' => 0, 'id' => 0, 'name' => $item['author-name'], - 'screen_name' => '', + 'screen_name' => $item['author_name'], 'location' => '', //$uinfo[0]['default-location'], 'profile_image_url' => $item['author-avatar'], 'url' => $item['author-link'], |