mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-23 05:10:29 +00:00
more FB link improvements
This commit is contained in:
parent
e5f3e1f540
commit
28405bfeb6
2 changed files with 10 additions and 4 deletions
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 && $entry->link) {
|
||||||
|
$datarray['body'] .= "\n\n" . '[url=' . $entry->link . '][img]' . $entry->picture . '[/img][/url]';
|
||||||
|
}
|
||||||
|
else {
|
||||||
if($entry->picture)
|
if($entry->picture)
|
||||||
$datarray['body'] .= "\n\n" . '[img]' . $entry->picture . '[/img]';
|
$datarray['body'] .= "\n\n" . '[img]' . $entry->picture . '[/img]';
|
||||||
if($entry->link)
|
if($entry->link)
|
||||||
$datarray['body'] .= "\n" . '[url=' . $entry->link . ']' . t('link') . '[/url]';
|
$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