aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-12-16 15:10:43 -0800
committerzotlabs <mike@macgirvin.com>2017-12-16 15:10:43 -0800
commitb1e191ce215e087c075df07e376dcacec152e398 (patch)
tree6eab3f1c9e5d52bc0a35f5e9a2d1eda3e88e0fb2
parentf965d9dc9e520800f0fe8e198c31f10e12379c88 (diff)
downloadvolse-hubzilla-b1e191ce215e087c075df07e376dcacec152e398.tar.gz
volse-hubzilla-b1e191ce215e087c075df07e376dcacec152e398.tar.bz2
volse-hubzilla-b1e191ce215e087c075df07e376dcacec152e398.zip
don't zidify all permalinks, only zot permalinks
-rw-r--r--include/text.php7
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'),
);
}