aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-05 21:30:12 -0700
committerFriendika <info@friendika.com>2011-08-05 21:30:12 -0700
commitaa3a14ec36db5f9df9d0ec27c607a994451fc845 (patch)
treeb3750f61990c60eaf0e9de7c3af95decd7ea7b1d /include/api.php
parent8ae0a8a94c359769662b1907abb518b3f51912aa (diff)
downloadvolse-hubzilla-aa3a14ec36db5f9df9d0ec27c607a994451fc845.tar.gz
volse-hubzilla-aa3a14ec36db5f9df9d0ec27c607a994451fc845.tar.bz2
volse-hubzilla-aa3a14ec36db5f9df9d0ec27c607a994451fc845.zip
bug #117, use realname for screen_name in API if nickname missing
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php4
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'],