allow RSS for feed contacts, but no comments

This commit is contained in:
Friendika 2011-01-24 19:36:20 -08:00
commit 08d6fe5ae7
3 changed files with 26 additions and 7 deletions

View file

@ -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))) {