diff options
author | Mario <mario@mariovavti.com> | 2025-05-31 20:16:24 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-05-31 20:16:24 +0000 |
commit | 3ea323bfb0a7f6371ca48c65a18bc0080988e705 (patch) | |
tree | 5e01096ef02f34e8053eb3d5820eeb98437fa008 | |
parent | c826b307c29f6cbc2100b02564174f434b98fbdd (diff) | |
download | volse-hubzilla-3ea323bfb0a7f6371ca48c65a18bc0080988e705.tar.gz volse-hubzilla-3ea323bfb0a7f6371ca48c65a18bc0080988e705.tar.bz2 volse-hubzilla-3ea323bfb0a7f6371ca48c65a18bc0080988e705.zip |
handle intro notifications via /notify/view so that it will eventually be marked seen
-rw-r--r-- | Zotlabs/Lib/Enotify.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index 12dbfee7f..6d5e249ef 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -910,14 +910,13 @@ class Enotify { } static public function format_notify($tt) { - $message = trim(strip_tags(bbcode($tt['msg']))); if(strpos($message, $tt['xname']) === 0) $message = substr($message, strlen($tt['xname']) + 1); $x = [ - 'notify_link' => $tt['link'], + 'notify_link' => (($tt['ntype'] === NOTIFY_INTRO) ? z_root() . '/notify/view/' . $tt['id'] : $tt['link']), 'name' => $tt['xname'], 'url' => $tt['url'], 'photo' => $tt['photo'], @@ -929,11 +928,9 @@ class Enotify { ]; return $x; - } static public function format_intros($rr) { - return [ 'notify_link' => z_root() . '/connections#' . $rr['abook_id'], 'name' => $rr['xchan_name'], |