We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d9b64964 authored by mattl's avatar mattl

Show notice feed URLs (and author)

parent d2c11925
...@@ -74,6 +74,7 @@ class ShownoticeAction extends ManagedAction ...@@ -74,6 +74,7 @@ class ShownoticeAction extends ManagedAction
} }
$this->notice = $this->getNotice(); $this->notice = $this->getNotice();
$this->target = $this->notice;
if (!$this->notice->inScope($this->scoped)) { if (!$this->notice->inScope($this->scoped)) {
// TRANS: Client exception thrown when trying a view a notice the user has no access to. // TRANS: Client exception thrown when trying a view a notice the user has no access to.
...@@ -213,12 +214,24 @@ class ShownoticeAction extends ManagedAction ...@@ -213,12 +214,24 @@ class ShownoticeAction extends ManagedAction
{ {
} }
/** function getFeeds()
* Don't show aside {
* return array(new Feed(Feed::JSON,
* @return void common_local_url('ApiStatusesShow',
*/ array(
function showAside() { 'id' => $this->target->getID(),
'format' => 'json')),
// TRANS: Title for link to single notice representation.
// TRANS: %s is a user nickname.
sprintf(_('Single notice (JSON)'))),
new Feed(Feed::ATOM,
common_local_url('ApiStatusesShow',
array(
'id' => $this->target->getID(),
'format' => 'atom')),
// TRANS: Title for link to notice feed.
// TRANS: %s is a user nickname.
sprintf(_('Single notice (Atom)'))));
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment