git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit c0d13097 authored by Evan Prodromou's avatar Evan Prodromou

use Notice::bestUrl() to determine notice url in NoticeListItem::showNoticeLink()

parent 269d567d
......@@ -380,12 +380,12 @@ class NoticeListItem extends Widget
function showNoticeLink()
{
if($this->notice->is_local == Notice::LOCAL_PUBLIC || $this->notice->is_local == Notice::LOCAL_NONPUBLIC){
$noticeurl = common_local_url('shownotice',
array('notice' => $this->notice->id));
}else{
$noticeurl = $this->notice->uri;
}
$noticeurl = $this->notice->bestUrl();
// above should always return an URL
assert(!empty($noticeurl));
$this->out->elementStart('a', array('rel' => 'bookmark',
'class' => 'timestamp',
'href' => $noticeurl));
......
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