summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-05-05 22:35:16 -0700
committerZach Copley <zach@status.net>2010-05-06 21:48:11 +0000
commitb547079b280b9fa2f8877aab7ad5cd3761f500b9 (patch)
tree1c2818f54c6cb517493f37757d8f19f17058f2a7 /lib
parente05415f621890bbaf42752577249ecdc22c161fc (diff)
Add xmlns:statusnet and statusnet:notice_info element to Atom entries for notices
Diffstat (limited to 'lib')
-rw-r--r--lib/atomnoticefeed.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/atomnoticefeed.php b/lib/atomnoticefeed.php
index e4df731fe..35a45118c 100644
--- a/lib/atomnoticefeed.php
+++ b/lib/atomnoticefeed.php
@@ -79,6 +79,11 @@ class AtomNoticeFeed extends Atom10Feed
'ostatus',
'http://ostatus.org/schema/1.0'
);
+
+ $this->addNamespace(
+ 'statusnet',
+ 'http://status.net/ont/'
+ );
}
/**
@@ -110,7 +115,9 @@ class AtomNoticeFeed extends Atom10Feed
$source = $this->showSource();
$author = $this->showAuthor();
- $this->addEntryRaw($notice->asAtomEntry(false, $source, $author));
+ $cur = common_current_user();
+
+ $this->addEntryRaw($notice->asAtomEntry(false, $source, $author, $cur));
}
function showSource()