summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-02-10 18:55:14 -0800
committerZach Copley <zach@status.net>2010-02-11 13:56:05 -0800
commite2c0f59414dd7e9a33ffbae7307b81a85c2c168b (patch)
treed10b1f7f4b3220124a03f7f7d019632eb1e7c469 /lib
parentce3c3be1bf971329f82bedbf3aae636e3c8ecbf9 (diff)
Some upgrades to Atom output for OStatus
Diffstat (limited to 'lib')
-rw-r--r--lib/atom10feed.php2
-rw-r--r--lib/atomnoticefeed.php18
2 files changed, 18 insertions, 2 deletions
diff --git a/lib/atom10feed.php b/lib/atom10feed.php
index 9dd8ebc9b..01fc69072 100644
--- a/lib/atom10feed.php
+++ b/lib/atom10feed.php
@@ -153,7 +153,7 @@ class Atom10Feed extends XMLStringer
* Assumes you want rel="alternate" and type="text/html" unless
* you send in $otherAttrs.
*
- * @param string $uri the uri the href need to point to
+ * @param string $uri the uri the href needs to point to
* @param array $otherAttrs other attributes to stick in
*
* @return void
diff --git a/lib/atomnoticefeed.php b/lib/atomnoticefeed.php
index a28c9cda7..ce87ec9e6 100644
--- a/lib/atomnoticefeed.php
+++ b/lib/atomnoticefeed.php
@@ -5,12 +5,28 @@ class AtomNoticeFeed extends Atom10Feed
function __construct($indent = true) {
parent::__construct($indent);
- // Feeds containing notice info use the Atom Threading Extensions
+ // Feeds containing notice info use these namespaces
$this->addNamespace(
'xmlns:thr',
'http://purl.org/syndication/thread/1.0'
);
+
+ $this->addNamespace(
+ 'xmlns:georss',
+ 'http://www.georss.org/georss'
+ );
+
+ $this->addNamespace(
+ 'xmlns:activity',
+ 'http://activitystrea.ms/spec/1.0/'
+ );
+
+ // XXX: What should the uri be?
+ $this->addNamespace(
+ 'xmlns:ostatus',
+ 'http://ostatus.org/schema/1.0'
+ );
}
function addEntryFromNotices($notices)