diff options
author | Friendika <info@friendika.com> | 2011-04-04 20:40:31 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-04 20:40:31 -0700 |
commit | 4c5e091b784574337c7124b7763bbd19f4bc810f (patch) | |
tree | 1abf46a183faf5e7993426c592d60a26cb246842 /mod | |
parent | 793967a1d3c23fcf1f3b00a2832f51e6f473f4bd (diff) | |
download | volse-hubzilla-4c5e091b784574337c7124b7763bbd19f4bc810f.tar.gz volse-hubzilla-4c5e091b784574337c7124b7763bbd19f4bc810f.tar.bz2 volse-hubzilla-4c5e091b784574337c7124b7763bbd19f4bc810f.zip |
better twitter follow support
Diffstat (limited to 'mod')
-rw-r--r-- | mod/follow.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/follow.php b/mod/follow.php index 06e81ceed..48ad66747 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -112,6 +112,8 @@ function follow_post(&$a) { if(count($ret) && ($ret['feed_atom'] || $ret['feed_rss'])) { $poll = ((x($ret,'feed_atom')) ? unamp($ret['feed_atom']) : unamp($ret['feed_rss'])); $vcard = array(); + if(x($ret,'photo')) + $vcard['photo'] = $ret['photo']; require_once('simplepie/simplepie.inc'); $feed = new SimplePie(); $xml = fetch_url($poll); @@ -120,7 +122,8 @@ function follow_post(&$a) { $feed->init(); - $vcard['photo'] = $feed->get_image_url(); + if(! x($vcard,'photo')) + $vcard['photo'] = $feed->get_image_url(); $author = $feed->get_author(); if($author) { $vcard['fn'] = unxmlify(trim($author->get_name())); |