diff options
author | zotlabs <mike@macgirvin.com> | 2017-12-16 15:10:43 -0800 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-12-17 10:58:01 +0100 |
commit | 715847bf748a773b3326e68e94935efdf178f5fe (patch) | |
tree | 09727f6c1ec36c729bd80f6ebbcf0bdfa2f343ed | |
parent | 01289048a950e4638b6eb23e7bff28d6b88d0894 (diff) | |
download | volse-hubzilla-715847bf748a773b3326e68e94935efdf178f5fe.tar.gz volse-hubzilla-715847bf748a773b3326e68e94935efdf178f5fe.tar.bz2 volse-hubzilla-715847bf748a773b3326e68e94935efdf178f5fe.zip |
don't zidify all permalinks, only zot permalinks
-rw-r--r-- | include/text.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index f3d522e04..02e2a10b5 100644 --- a/include/text.php +++ b/include/text.php @@ -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'), ); } |