diff options
-rwxr-xr-x | boot.php | 2 | ||||
-rw-r--r-- | include/enotify.php | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -2055,6 +2055,8 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){ function get_my_url() { + if(x($_SESSION,'zrl_override')) + return $_SESSION['zrl_override']; if(x($_SESSION,'my_url')) return $_SESSION['my_url']; return false; diff --git a/include/enotify.php b/include/enotify.php index 11f594d6c..71629b9d9 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -363,13 +363,15 @@ function notification($params) { // the recipient address instead of the current observer $_SESSION['zid_override'] = $recip['channel_address'] . '@' . get_app()->get_hostname(); - + $_SESSION['zrl_override'] = z_root() . '/channel/' . $recip['channel_address']; + $textversion = zidify_links($textversion); $htmlversion = zidify_links($htmlversion); // unset when done to revert to normal behaviour unset($_SESSION['zid_override']); + unset($_SESSION['zrl_override']); $datarray = array(); |