small issue with zid returning incorrect result on your own channel link

This commit is contained in:
friendica 2013-04-18 19:11:28 -07:00
parent db038c5654
commit 2679a5990e

View file

@ -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);