don't zidify all permalinks, only zot permalinks

This commit is contained in:
zotlabs 2017-12-16 15:10:43 -08:00
parent f965d9dc9e
commit b1e191ce21

View file

@ -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'),
);
}