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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue