diff options
author | Zach Copley <zach@status.net> | 2010-02-12 19:00:35 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-02-12 19:02:27 -0800 |
commit | f3a82e787c70e8cf749c79f22fe37ce6c9c9d4d3 (patch) | |
tree | e44584e632060d49f2ff325b4daf45c251f3dceb /lib/atom10feed.php | |
parent | d6f1df8b76259acfc0d0566e8bf3610172b27884 (diff) |
Add OStatus PuSH hub and Salmon links back into user and group feeds
Diffstat (limited to 'lib/atom10feed.php')
-rw-r--r-- | lib/atom10feed.php | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/lib/atom10feed.php b/lib/atom10feed.php index 806a9684b..14a3beb83 100644 --- a/lib/atom10feed.php +++ b/lib/atom10feed.php @@ -175,6 +175,8 @@ class Atom10Feed extends XMLStringer $this->element('updated', null, $this->updated); + $this->renderAuthors(); + $this->renderLinks(); } @@ -221,17 +223,20 @@ class Atom10Feed extends XMLStringer function getString() { - $this->validate(); + if (Event::handle('StartApiAtom', array($this))) { - $this->initFeed(); - $this->renderAuthors(); + $this->validate(); + $this->initFeed(); - if (!empty($this->subject)) { - $this->raw($this->subject); - } + if (!empty($this->subject)) { + $this->raw($this->subject); + } + + $this->renderEntries(); + $this->endFeed(); - $this->renderEntries(); - $this->endFeed(); + Event::handle('EndApiAtom', array($this)); + } return $this->xw->outputMemory(); } |