Salmon only has one "rel" value now, so start deprecating

This commit is contained in:
Mikael Nordfeldth
2013-11-01 17:00:12 +01:00
parent bd86519d50
commit 7ddd561837
4 changed files with 15 additions and 7 deletions

View File

@@ -56,7 +56,8 @@ print "Re-running feed discovery for profile URL $oprofile->uri\n";
$discover = new FeedDiscovery();
$feedurl = $discover->discoverFromURL($oprofile->uri);
$huburi = $discover->getHubLink();
$salmonuri = $discover->getAtomLink(Salmon::NS_REPLIES);
$salmonuri = $discover->getAtomLink(Salmon::REL_SALMON)
?: $discover->getAtomLink(Salmon::NS_REPLIES);
print " Feed URL: $feedurl\n";
print " Hub URL: $huburi\n";