Index: openacs-4/packages/notifications/lib/notification-sse.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/notifications/lib/notification-sse.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/notifications/lib/notification-sse.adp 6 Feb 2025 15:55:53 -0000 1.1 +++ openacs-4/packages/notifications/lib/notification-sse.adp 10 Jun 2025 13:19:56 -0000 1.2 @@ -23,17 +23,11 @@ } if (Notification.permission === 'granted') { - // Check whether notification permissions have already been granted; - // if so, create a notification + // Check whether notification permissions have already been + // granted; if so, create a notification. Note that we cannot + // request consent here if it was not granted earlier, because + // the request should follow a user interaction. const notification = messageToNotification(message); - } else if (Notification.permission !== 'denied') { - // We need to ask the user for permission - Notification.requestPermission().then((permission) => { - // If the user accepts, let's create a notification - if (permission === 'granted') { - const notification = messageToNotification(message); - } - }); } else { console.warn('Your browser does not have permission to display this notification.'); return Index: openacs-4/packages/notifications/tcl/notification-sse-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/notifications/tcl/notification-sse-procs.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/notifications/tcl/notification-sse-procs.tcl 20 Dec 2024 12:14:51 -0000 1.2 +++ openacs-4/packages/notifications/tcl/notification-sse-procs.tcl 10 Jun 2025 13:19:57 -0000 1.3 @@ -91,17 +91,18 @@ return } - if { $content_html eq "" } { - set content $content_text - } else { - set content $content_html - } - # # convert relative URLs to fully qualified URLs # - set content [::ad_html_qualify_links $content] + set content [::ad_html_qualify_links $content_html] + # + # We currently use the Notification web api to display SSE + # notifications, which does not support HTML markup. + # + set content [::ad_html_to_text $content] + + set user_locale [::lang::user::site_wide_locale -user_id $to_user_id] if { $user_locale eq "" } { set user_locale [::lang::system::site_wide_locale] Index: openacs-4/packages/notifications/www/request-new.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/notifications/www/request-new.adp,v diff -u -r1.8 -r1.9 --- openacs-4/packages/notifications/www/request-new.adp 3 Jul 2015 11:04:08 -0000 1.8 +++ openacs-4/packages/notifications/www/request-new.adp 10 Jun 2025 13:19:57 -0000 1.9 @@ -4,3 +4,19 @@