From c7af6bb14b9159bfcbcf6704030361bf51ec5a3e Mon Sep 17 00:00:00 2001 From: Ali Asadi Date: Sat, 22 Aug 2026 09:36:24 +0330 Subject: [PATCH] feat(notifications): accept optional click_url in notifications_push_user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Passes through to the notifications service, which embeds it as the Gotify tap destination when set. Optional — no existing call site changes, most notifications stay non-clickable. Co-Authored-By: Claude Sonnet 5 --- utils/clients/notifications_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/clients/notifications_client.py b/utils/clients/notifications_client.py index a478707..e9c51e7 100644 --- a/utils/clients/notifications_client.py +++ b/utils/clients/notifications_client.py @@ -75,7 +75,9 @@ def get_notifications_client(): return client -def notifications_push_user(user_uuid, title, message, priority=5, extras=None): +def notifications_push_user(user_uuid, title, message, priority=5, extras=None, click_url=None): + # click_url is optional — most notifications aren't clickable. When set, + # the notifications service embeds it as the tap destination. class Tmp(): def to_dict(self): return { @@ -83,6 +85,7 @@ def notifications_push_user(user_uuid, title, message, priority=5, extras=None): 'message': message, 'priority': priority, 'extras': extras, + 'click_url': click_url, } push_data = Tmp() -- 2.45.3