mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:35:12 +00:00
don't zidify all permalinks, only zot permalinks
This commit is contained in:
parent
f965d9dc9e
commit
b1e191ce21
1 changed files with 6 additions and 1 deletions
|
@ -1754,9 +1754,14 @@ function get_plink($item,$conversation_mode = true) {
|
|||
else
|
||||
$key = 'llink';
|
||||
|
||||
$zidify = false;
|
||||
|
||||
if(array_key_exists('author',$item) && $item['author']['xchan_network'] === 'zot')
|
||||
$zidify = true;
|
||||
|
||||
if(x($item,$key)) {
|
||||
return array(
|
||||
'href' => zid($item[$key]),
|
||||
'href' => (($zidify) ? zid($item[$key]) : $item[$key]),
|
||||
'title' => t('Link to Source'),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue