use original application if available

This commit is contained in:
Friendika 2011-06-21 00:50:54 -07:00
parent 5a23440fb4
commit 2b11ff65dc

View file

@ -816,7 +816,9 @@ function fb_consume_stream($uid,$j,$wall = false) {
$datarray['owner-link'] = $self[0]['url']; $datarray['owner-link'] = $self[0]['url'];
$datarray['owner-avatar'] = $self[0]['thumb']; $datarray['owner-avatar'] = $self[0]['thumb'];
} }
if(isset($entry->application) && isset($entry->application->name) && strlen($entry->application->name))
$datarray['app'] = $entry->application->name;
else
$datarray['app'] = 'facebook'; $datarray['app'] = 'facebook';
$datarray['author-name'] = $from->name; $datarray['author-name'] = $from->name;
$datarray['author-link'] = 'http://facebook.com/profile.php?id=' . $from->id; $datarray['author-link'] = 'http://facebook.com/profile.php?id=' . $from->id;