aboutsummaryrefslogtreecommitdiffstats
path: root/mod/follow.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-24 19:36:20 -0800
committerFriendika <info@friendika.com>2011-01-24 19:36:20 -0800
commit08d6fe5ae74cc223e4385344f8e0edfde4208a23 (patch)
tree82b471c1b0bdbe6666ced3121165a8174f7d7dde /mod/follow.php
parent8e3c2634cb3065837cfef09c3435f85a15dc6755 (diff)
downloadvolse-hubzilla-08d6fe5ae74cc223e4385344f8e0edfde4208a23.tar.gz
volse-hubzilla-08d6fe5ae74cc223e4385344f8e0edfde4208a23.tar.bz2
volse-hubzilla-08d6fe5ae74cc223e4385344f8e0edfde4208a23.zip
allow RSS for feed contacts, but no comments
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))) {