more FB link improvements

pull/2/head
friendica 2011-12-04 17:33:08 -08:00
parent e5f3e1f540
commit 28405bfeb6
2 changed files with 10 additions and 4 deletions

Binary file not shown.

View File

@ -928,10 +928,16 @@ function fb_consume_stream($uid,$j,$wall = false) {
$datarray['plink'] = $datarray['author-link'] . '&v=wall&story_fbid=' . substr($entry->id,strpos($entry->id,'_') + 1);
$datarray['body'] = $entry->message;
if($entry->picture && $entry->link) {
$datarray['body'] .= "\n\n" . '[url=' . $entry->link . '][img]' . $entry->picture . '[/img][/url]';
}
else {
if($entry->picture)
$datarray['body'] .= "\n\n" . '[img]' . $entry->picture . '[/img]';
if($entry->link)
$datarray['body'] .= "\n" . '[url=' . $entry->link . ']' . t('link') . '[/url]';
}
if($entry->name)
$datarray['body'] .= "\n" . $entry->name;
if($entry->caption)