mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:15:19 +00:00
small issue with zid returning incorrect result on your own channel link
This commit is contained in:
parent
db038c5654
commit
2679a5990e
1 changed files with 3 additions and 0 deletions
3
boot.php
3
boot.php
|
@ -2067,8 +2067,11 @@ function zid($s,$force = false) {
|
||||||
|
|
||||||
$mine = get_my_url();
|
$mine = get_my_url();
|
||||||
$myaddr = get_my_address();
|
$myaddr = get_my_address();
|
||||||
|
|
||||||
if($mine and ! link_compare($mine,$s))
|
if($mine and ! link_compare($mine,$s))
|
||||||
$zurl = $s . (($num_slashes >= 3) ? '' : '/') . $achar . 'zid=' . urlencode($myaddr);
|
$zurl = $s . (($num_slashes >= 3) ? '' : '/') . $achar . 'zid=' . urlencode($myaddr);
|
||||||
|
else
|
||||||
|
$zurl = $s;
|
||||||
|
|
||||||
$arr = array('url' => $s, 'zid' => urlencode($myaddr), 'result' => $zurl);
|
$arr = array('url' => $s, 'zid' => urlencode($myaddr), 'result' => $zurl);
|
||||||
call_hooks('zid', $arr);
|
call_hooks('zid', $arr);
|
||||||
|
|
Loading…
Reference in a new issue