if (!$this->notice) {
// TRANS: Server error displayed when a public timeline cannot be retrieved.
$this->serverError(_('Could not retrieve public timeline.'));
- return;
}
if($this->page > 1 && $this->notice->N == 0){
$this->element('link', array('rel' => 'EditURI',
'type' => 'application/rsd+xml',
'href' => $rsd));
+
+ if ($this->page != 1) {
+ $this->element('link', array('rel' => 'canonical',
+ 'href' => common_local_url('public')));
+ }
}
/**
{
// Show invite button, as long as site isn't closed, and
// we have a logged in user.
- if (!common_config('site', 'closed') && common_logged_in()) {
+ if (common_config('invite', 'enabled') && !common_config('site', 'closed') && common_logged_in()) {
if (!common_config('site', 'private')) {
$ibs = new InviteButtonSection(
$this,
$ibs->show();
}
- $pop = new PopularNoticeSection($this);
+ $p = Profile::current();
+
+ $pop = new PopularNoticeSection($this, $p);
$pop->show();
if (!common_config('performance', 'high')) {
$cloud = new PublicTagCloudSection($this);