mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-17 04:30:40 +02:00
Add clear=true|false support to actions
This commit is contained in:
parent
8f4a1db1f0
commit
12f85cceb1
4 changed files with 72 additions and 45 deletions
server
|
@ -121,6 +121,9 @@ func parseActionsFromSimple(s string) ([]*action, error) {
|
|||
newAction.Action = value
|
||||
case "label":
|
||||
newAction.Label = value
|
||||
case "clear":
|
||||
lvalue := strings.ToLower(value)
|
||||
newAction.Clear = lvalue == "true" || lvalue == "yes" || lvalue == "1"
|
||||
case "url":
|
||||
newAction.URL = value
|
||||
case "method":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue