summaryrefslogtreecommitdiff
path: root/lib/atomnoticefeed.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-05-05 22:35:16 -0700
committerZach Copley <zach@status.net>2010-05-18 15:15:14 -0700
commitd9fddff5395e77287c4de0796fd072b3073f1eb9 (patch)
treeee526d4abadbf9f82e82b07ee9d659f1cfcfbc89 /lib/atomnoticefeed.php
parent14a76926a225dec3d29aeffa13ab7ece74f708e5 (diff)
Add xmlns:statusnet and statusnet:notice_info element to Atom entries for notices
Diffstat (limited to 'lib/atomnoticefeed.php')
-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()