summaryrefslogtreecommitdiff
path: root/plugins/OStatus/lib/feedmunger.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-11 20:12:48 +0000
committerBrion Vibber <brion@pobox.com>2010-02-11 20:12:48 +0000
commit1773d12a24d2720cdb6c1b517999cac1f708b355 (patch)
treea16c084b4c88e9a4e788b695e719472e0f62eeb2 /plugins/OStatus/lib/feedmunger.php
parent21bfbc43ad026afdab4040713805913000fef626 (diff)
OStatus: save Salmon postback URI in feed subscription info, if provided. Will need it for sub/unsub postbacks and other notifications.
Diffstat (limited to 'plugins/OStatus/lib/feedmunger.php')
-rw-r--r--plugins/OStatus/lib/feedmunger.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/OStatus/lib/feedmunger.php b/plugins/OStatus/lib/feedmunger.php
index 7f223cb20..25b0a0931 100644
--- a/plugins/OStatus/lib/feedmunger.php
+++ b/plugins/OStatus/lib/feedmunger.php
@@ -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'));