diff options
Diffstat (limited to 'addon/facebook/facebook.php')
-rw-r--r-- | addon/facebook/facebook.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 83a34c072..9410b73dc 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -499,7 +499,8 @@ function facebook_post_hook(&$a,&$b) { $msg = preg_replace("/\[img\](.+?)\[\/img\]/is", t('Image: ') . '$1', $msg); - + if((strpos($link,$a->get_baseurl()) !== false) && (! $image)) + $image = $a->get_baseurl() . '/images/friendika-64.jpg'; $msg = trim(strip_tags(bbcode($msg))); $msg = html_entity_decode($msg,ENT_QUOTES,'UTF-8'); |