diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-08 22:55:34 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-08 22:55:34 +0000 |
commit | 03a4a4bebf2197097e672e094535ee067fe25441 (patch) | |
tree | 2b73b7cf06cd7a65a327df726cc6d1106bfecaff /lib/noticelist.php | |
parent | e5657ca4bbd8a43bf2dd44c2554e807a45224bd7 (diff) | |
parent | 4e3e4fcfff53ea3a5ef5c90672f3848596d3acbf (diff) |
Merge branch '0.8.x' of git@gitorious.org:laconica/dev into 0.8.x
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r-- | lib/noticelist.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php index 4182d8808..8fccba73e 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -197,7 +197,7 @@ class NoticeListItem extends Widget $this->out->elementStart('div', 'entry-content'); $this->showNoticeLink(); $this->showNoticeSource(); - $this->showReplyTo(); + $this->showContext(); $this->out->elementEnd('div'); } @@ -421,17 +421,18 @@ class NoticeListItem extends Widget * @return void */ - function showReplyTo() + function showContext() { - if ($this->notice->reply_to) { - $replyurl = common_local_url('shownotice', - array('notice' => $this->notice->reply_to)); + // XXX: also show context if there are replies to this notice + if (!empty($this->notice->conversation) + && $this->notice->conversation != $this->notice->id) { + $convurl = common_local_url('conversation', + array('id' => $this->notice->conversation)); $this->out->elementStart('dl', 'response'); $this->out->element('dt', null, _('To')); $this->out->elementStart('dd'); - $this->out->element('a', array('href' => $replyurl, - 'rel' => 'in-reply-to'), - _('in reply to')); + $this->out->element('a', array('href' => $convurl), + _('in context')); $this->out->elementEnd('dd'); $this->out->elementEnd('dl'); } |