]> git.mxchange.org Git - friendica.git/commitdiff
bug #117, use realname for screen_name in API if nickname missing
authorFriendika <info@friendika.com>
Sat, 6 Aug 2011 04:30:12 +0000 (21:30 -0700)
committerFriendika <info@friendika.com>
Sat, 6 Aug 2011 04:30:12 +0000 (21:30 -0700)
boot.php
include/api.php

index e1a1c5a503a153ff570638930410e64234c3c2ac..17161f715a698532bab75e15332f95479ad13302 100644 (file)
--- a/boot.php
+++ b/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      );
 
index 3c692cf741f4e3058e3b44230477a6751b2a8db0..2a02458d7a05c65719baf0ec30cfdde3d207f91c 100644 (file)
                        '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'],
                        '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'],