aboutsummaryrefslogtreecommitdiffstats
path: root/mod/follow.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2011-01-25 08:54:10 +0100
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2011-01-25 08:54:10 +0100
commit4c717b38ae8eccaf9fa2ab4e6411b10c2d24afdf (patch)
tree1dd91abe675ad2b8c98dccba6930144e1f73b33c /mod/follow.php
parent7e007b6c07d5395c59797999728fcde288ed79b1 (diff)
parentbb1afd867d1b7bd98930108727b88a066af9749d (diff)
downloadvolse-hubzilla-4c717b38ae8eccaf9fa2ab4e6411b10c2d24afdf.tar.gz
volse-hubzilla-4c717b38ae8eccaf9fa2ab4e6411b10c2d24afdf.tar.bz2
volse-hubzilla-4c717b38ae8eccaf9fa2ab4e6411b10c2d24afdf.zip
Merge branch 'master' of git://github.com/tobiasd/friendika
Diffstat (limited to 'mod/follow.php')
-rw-r--r--mod/follow.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/follow.php b/mod/follow.php
index e5eb7763b..bad2e74f9 100644
--- a/mod/follow.php
+++ b/mod/follow.php
@@ -74,8 +74,8 @@ function follow_post(&$a) {
$ret = scrape_feed($url);
- if(count($ret) && $ret['feed_atom']) {
- $poll = $ret['feed_atom'];
+ if(count($ret) && ($ret['feed_atom'] || $ret['feed_rss'])) {
+ $poll = ((x($ret,'feed_atom')) ? $ret['feed_atom'] : $ret['feed_rss']);
$vcard = array();
require_once('simplepie/simplepie.inc');
$feed = new SimplePie();
@@ -115,7 +115,6 @@ function follow_post(&$a) {
logger('follow: poll=' . $poll . ' notify=' . $notify . ' profile=' . $profile . ' vcard=' . print_r($vcard,true));
-
// do we have enough information?
if(! ((x($vcard['fn'])) && ($poll) && ($profile))) {