function showNoticeTitle()
{
if (Event::handle('StartShowNoticeTitle', array($this))) {
- $this->element('a', array('href' => $this->notice->getUrl(),
+ $this->element('a', array('href' => $this->notice->getUrl(true),
'class' => 'notice-title'),
$this->notice->getTitle());
Event::handle('EndShowNoticeTitle', array($this));
'href' => Conversation::getUrlFromNotice($this->notice)));
$this->out->element('time', array('class' => 'dt-published',
'datetime' => common_date_iso8601($this->notice->created),
- // TRANS: Timestamp title (tooltip text) for NoticeListItem
'title' => common_exact_date($this->notice->created)),
common_date_string($this->notice->created));
$this->out->elementEnd('a');
if (!$this->notice->isLocal()) {
$class .= ' external';
}
+
+ try {
+ if($this->repeat) {
+ $this->out->element('a',
+ array('href' => $this->repeat->getUrl(),
+ 'class' => 'u-url'),
+ '');
+ $class = str_replace('u-url', 'u-repost-of', $class);
+ }
+ } catch (InvalidUrlException $e) {
+ // no permalink available
+ }
+
try {
$this->out->element('a',
- array('href' => $this->notice->getUrl(),
+ array('href' => $this->notice->getUrl(true),
'class' => $class),
// TRANS: Addition in notice list item for single-notice view.
_('permalink'));