From 2679a5990e8551d8d63ef561d762ca16dde520c4 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 18 Apr 2013 19:11:28 -0700 Subject: small issue with zid returning incorrect result on your own channel link --- boot.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot.php b/boot.php index 8e6b85905..33d9a2ee9 100644 --- a/boot.php +++ b/boot.php @@ -2067,8 +2067,11 @@ function zid($s,$force = false) { $mine = get_my_url(); $myaddr = get_my_address(); + if($mine and ! link_compare($mine,$s)) $zurl = $s . (($num_slashes >= 3) ? '' : '/') . $achar . 'zid=' . urlencode($myaddr); + else + $zurl = $s; $arr = array('url' => $s, 'zid' => urlencode($myaddr), 'result' => $zurl); call_hooks('zid', $arr); -- cgit v1.2.3