allow RSS for feed contacts, but no comments
This commit is contained in:
parent
8e3c2634cb
commit
08d6fe5ae7
3 changed files with 26 additions and 7 deletions
|
@ -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))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue