aboutsummaryrefslogtreecommitdiffstats
path: root/mod/follow.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-02-03 07:24:58 +0100
committerfabrixxm <fabrix.xm@gmail.com>2011-02-03 07:24:58 +0100
commit97bb80c00f4106d63d730f6bcaebf9e4aa247c01 (patch)
tree43bfb9aa3f85c3b7c2ec19ad72fece95f745ce4d /mod/follow.php
parenta3fd84661f74b0759f9edad1f068b32820b03c5d (diff)
parent0a32370e32b068073010d1d6b33241867c3be4d7 (diff)
downloadvolse-hubzilla-97bb80c00f4106d63d730f6bcaebf9e4aa247c01.tar.gz
volse-hubzilla-97bb80c00f4106d63d730f6bcaebf9e4aa247c01.tar.bz2
volse-hubzilla-97bb80c00f4106d63d730f6bcaebf9e4aa247c01.zip
Merge branch 'friendika-master'
Diffstat (limited to 'mod/follow.php')
-rw-r--r--mod/follow.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/follow.php b/mod/follow.php
index c5f6d9e3f..8c1dc348f 100644
--- a/mod/follow.php
+++ b/mod/follow.php
@@ -113,10 +113,16 @@ function follow_post(&$a) {
$vcard['nick'] = trim(substr($vcard['nick'],0,strpos($vcard['nick'],' ')));
$email = $author->get_email();
}
+ if(! $vcard['photo']) {
+ $rawmedia = $item->get_item_tags('http://search.yahoo.com/mrss/','thumbnail');
+ if($rawmedia && $rawmedia[0]['attribs']['']['url'])
+ $vcard['photo'] = $rawmedia[0]['attribs']['']['url'];
+ }
}
}
if((! $vcard['photo']) && strlen($email))
$vcard['photo'] = gravatar_img($email);
+
$network = 'feed';
$priority = 2;
}