aboutsummaryrefslogtreecommitdiffstats
path: root/addon/facebook/facebook.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-22 21:20:28 -0700
committerFriendika <info@friendika.com>2011-05-22 21:20:28 -0700
commit5996e2cd4c82834dace66f7bc4bd7a2ed5e4b293 (patch)
tree4ca8ee47e74231a1fc71184f517f0c6d5060e036 /addon/facebook/facebook.php
parent576f8eda085b3996ebb4aec62d8f6c866c390836 (diff)
downloadvolse-hubzilla-5996e2cd4c82834dace66f7bc4bd7a2ed5e4b293.tar.gz
volse-hubzilla-5996e2cd4c82834dace66f7bc4bd7a2ed5e4b293.tar.bz2
volse-hubzilla-5996e2cd4c82834dace66f7bc4bd7a2ed5e4b293.zip
if no FB image and fb link is on our site, use Friendika logo for fb image. Otherwise it's going to end up being a random friend.
Diffstat (limited to 'addon/facebook/facebook.php')
-rw-r--r--addon/facebook/facebook.php3
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');