From: Michael Tremer Date: Sun, 26 Jan 2025 11:57:12 +0000 (+0000) Subject: users: Bring back the welcome push message X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97c5f9c838369033d21cbcaafd5f08316a6ce484;p=pbs.git users: Bring back the welcome push message Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/users.py b/src/buildservice/users.py index 9523de6e..ad751a6f 100644 --- a/src/buildservice/users.py +++ b/src/buildservice/users.py @@ -961,6 +961,12 @@ class User(database.Base, database.BackendMixin, database.SoftDeleteMixin): # Log action log.info("%s subscribed to push notifications" % self) + # Send a message + await subscription.send( + _("Hello, %s!") % self.current_user, + _("You have successfully subscribed to push notifications."), + ) + return subscription async def send_push_message(self, *args, **kwargs):