From 00ef0d786194c1693c4b71c1cf8be2da3dfe11fe Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Tue, 14 Jan 2025 03:28:13 +0100 Subject: [PATCH] fix(ntfy): Clear notification after any action button is pressed Nexcloud removes notifications when anything is clickes so we should do the same. --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 1cd2fe4..d62abf3 100644 --- a/main.py +++ b/main.py @@ -25,7 +25,8 @@ def parse_actions(actions: list) -> list: "action": "http", "label": f"{action['label']}", "url": f"{action['link']}", - "method": f"{action['type']}" + "method": f"{action['type']}", + "clear": True } # The `action['type']` is documented to be a HTTP request.