aboutsummaryrefslogtreecommitdiffstats
path: root/mod/follow.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-01-25 10:16:47 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-01-25 10:16:47 +0100
commit1f95ba5c344a1b17c735bf2760a169beeff864c2 (patch)
tree576774009b9c9a9f8828538865d2ff8d9bbe3596 /mod/follow.php
parentf2789132ce13c92166f41992dd8955f667cab440 (diff)
parentb0ab3e468b5c20cfe369ff282b7906d1690a3510 (diff)
downloadvolse-hubzilla-1f95ba5c344a1b17c735bf2760a169beeff864c2.tar.gz
volse-hubzilla-1f95ba5c344a1b17c735bf2760a169beeff864c2.tar.bz2
volse-hubzilla-1f95ba5c344a1b17c735bf2760a169beeff864c2.zip
Merge remote branch 'friendika-master/master'
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))) {