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'));