bug #117, use realname for screen_name in API if nickname missing
This commit is contained in:
parent
8ae0a8a94c
commit
aa3a14ec36
2
boot.php
2
boot.php
|
@ -7,7 +7,7 @@ require_once('include/text.php');
|
|||
require_once("include/pgettext.php");
|
||||
|
||||
|
||||
define ( 'FRIENDIKA_VERSION', '2.2.1062' );
|
||||
define ( 'FRIENDIKA_VERSION', '2.2.1063' );
|
||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||
define ( 'DB_UPDATE_VERSION', 1077 );
|
||||
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue