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

@ -161,6 +161,8 @@ function scrape_feed($url) {
$x = $item->getAttribute('rel');
if(($x === 'alternate') && ($item->getAttribute('type') === 'application/atom+xml'))
$ret['feed_atom'] = $item->getAttribute('href');
if(($x === 'alternate') && ($item->getAttribute('type') === 'application/rss+xml'))
$ret['feed_rss'] = $item->getAttribute('href');
}
return $ret;