OStatus: save Salmon postback URI in feed subscription info, if provided. Will need it for sub/unsub postbacks and other notifications.

This commit is contained in:
Brion Vibber
2010-02-11 20:12:48 +00:00
parent 21bfbc43ad
commit 1773d12a24
2 changed files with 16 additions and 4 deletions

View File

@@ -89,6 +89,10 @@ class FeedMunger
$feedinfo->feeduri = $this->url;
$feedinfo->homeuri = $this->feed->link;
$feedinfo->huburi = $this->getHubLink();
$salmon = $this->getSalmonLink();
if ($salmon) {
$feedinfo->salmonuri = $salmon;
}
return $feedinfo;
}
@@ -154,7 +158,12 @@ class FeedMunger
{
return $this->getAtomLink($this->feed, array('rel' => 'hub'));
}
function getSalmonLink()
{
return $this->getAtomLink($this->feed, array('rel' => 'salmon'));
}
function getSelfLink()
{
return $this->getAtomLink($this->feed, array('rel' => 'self'));