another try on zidified notifications - this time it actually seems to work
This commit is contained in:
parent
49802d9a47
commit
c5e3859828
2
boot.php
2
boot.php
@ -2055,6 +2055,8 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
|
|||||||
|
|
||||||
|
|
||||||
function get_my_url() {
|
function get_my_url() {
|
||||||
|
if(x($_SESSION,'zrl_override'))
|
||||||
|
return $_SESSION['zrl_override'];
|
||||||
if(x($_SESSION,'my_url'))
|
if(x($_SESSION,'my_url'))
|
||||||
return $_SESSION['my_url'];
|
return $_SESSION['my_url'];
|
||||||
return false;
|
return false;
|
||||||
|
@ -363,6 +363,7 @@ function notification($params) {
|
|||||||
// the recipient address instead of the current observer
|
// the recipient address instead of the current observer
|
||||||
|
|
||||||
$_SESSION['zid_override'] = $recip['channel_address'] . '@' . get_app()->get_hostname();
|
$_SESSION['zid_override'] = $recip['channel_address'] . '@' . get_app()->get_hostname();
|
||||||
|
$_SESSION['zrl_override'] = z_root() . '/channel/' . $recip['channel_address'];
|
||||||
|
|
||||||
$textversion = zidify_links($textversion);
|
$textversion = zidify_links($textversion);
|
||||||
$htmlversion = zidify_links($htmlversion);
|
$htmlversion = zidify_links($htmlversion);
|
||||||
@ -370,6 +371,7 @@ function notification($params) {
|
|||||||
// unset when done to revert to normal behaviour
|
// unset when done to revert to normal behaviour
|
||||||
|
|
||||||
unset($_SESSION['zid_override']);
|
unset($_SESSION['zid_override']);
|
||||||
|
unset($_SESSION['zrl_override']);
|
||||||
|
|
||||||
|
|
||||||
$datarray = array();
|
$datarray = array();
|
||||||
|
Reference in New Issue
Block a user