forked from friendica/friendica-addons
more FB link improvements
This commit is contained in:
parent
e5f3e1f540
commit
28405bfeb6
BIN
facebook.tgz
BIN
facebook.tgz
Binary file not shown.
|
@ -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['plink'] = $datarray['author-link'] . '&v=wall&story_fbid=' . substr($entry->id,strpos($entry->id,'_') + 1);
|
||||||
|
|
||||||
$datarray['body'] = $entry->message;
|
$datarray['body'] = $entry->message;
|
||||||
if($entry->picture)
|
|
||||||
$datarray['body'] .= "\n\n" . '[img]' . $entry->picture . '[/img]';
|
if($entry->picture && $entry->link) {
|
||||||
if($entry->link)
|
$datarray['body'] .= "\n\n" . '[url=' . $entry->link . '][img]' . $entry->picture . '[/img][/url]';
|
||||||
$datarray['body'] .= "\n" . '[url=' . $entry->link . ']' . t('link') . '[/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)
|
if($entry->name)
|
||||||
$datarray['body'] .= "\n" . $entry->name;
|
$datarray['body'] .= "\n" . $entry->name;
|
||||||
if($entry->caption)
|
if($entry->caption)
|
||||||
|
|
Loading…
Reference in a new issue