forked from GNUsocial/gnu-social
trac1095 Profile page had bad alternate links for RSS and Atom feeds
This commit is contained in:
parent
05e11ea021
commit
c16ddd6775
@ -170,26 +170,22 @@ class ShowstreamAction extends Action
|
|||||||
|
|
||||||
function showFeeds()
|
function showFeeds()
|
||||||
{
|
{
|
||||||
// Feeds
|
|
||||||
$this->element('link', array('rel' => 'alternate',
|
$this->element('link', array('rel' => 'alternate',
|
||||||
'href' => common_local_url('api',
|
'type' => 'application/rss+xml',
|
||||||
array('apiaction' => 'statuses',
|
'href' => common_local_url('userrss',
|
||||||
'method' => 'entity_timeline.rss',
|
array('nickname' => $this->user->nickname)),
|
||||||
'argument' => $this->user->nickname)),
|
'title' => sprintf(_('Notice feed for %s (RSS)'),
|
||||||
'type' => 'application/rss+xml',
|
$this->user->nickname)));
|
||||||
'title' => sprintf(_('Notice feed for %s'), $this->user->nickname)));
|
|
||||||
$this->element('link', array('rel' => 'alternate feed',
|
$this->element('link',
|
||||||
'href' => common_local_url('api',
|
array('rel' => 'alternate',
|
||||||
array('apiaction' => 'statuses',
|
'href' => common_local_url('api',
|
||||||
'method' => 'entity_timeline.atom',
|
array('apiaction' => 'statuses',
|
||||||
'argument' => $this->user->nickname)),
|
'method' => 'user_timeline.atom',
|
||||||
'type' => 'application/atom+xml',
|
'argument' => $this->user->nickname)),
|
||||||
'title' => sprintf(_('Notice feed for %s'), $this->user->nickname)));
|
'type' => 'application/atom+xml',
|
||||||
$this->element('link', array('rel' => 'alternate',
|
'title' => sprintf(_('Notice feed for %s (Atom)'),
|
||||||
'href' => common_local_url('userrss', array('nickname' =>
|
$this->user->nickname)));
|
||||||
$this->user->nickname)),
|
|
||||||
'type' => 'application/rdf+xml',
|
|
||||||
'title' => sprintf(_('Notice feed for %s'), $this->user->nickname)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function extraHead()
|
function extraHead()
|
||||||
|
Loading…
Reference in New Issue
Block a user