Commit 2addf8e4 authored by mmn's avatar mmn

Merge branch 'repost-of-uf2' into 'master'

Mark up link to original as a repost for repeats

http://indiewebcamp.com/repost

See merge request !46
parents edd62e58 033ed7e4
......@@ -537,6 +537,19 @@ class NoticeListItem extends Widget
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(true),
......
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