commit 82d5755
Stefano Marinelli
·
2024-01-12 09:07:55 +0000 UTC
parent 13a0560
ntfy code cleanup
1 files changed,
+1,
-2
+1,
-2
1@@ -805,7 +805,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
2 char *ntfy_server = xs_dict_get(snac->config, "ntfy_server");
3 char *ntfy_token = xs_dict_get(snac->config, "ntfy_token");
4
5- if (!xs_is_null(ntfy_server) && *ntfy_server )
6+ if (!xs_is_null(ntfy_server) && *ntfy_server)
7 enqueue_ntfy(body, ntfy_server, ntfy_token);
8
9 /* finally, store it in the notification folder */
10@@ -2156,7 +2156,6 @@ void process_queue_item(xs_dict *q_item)
11 int status = 0;
12
13 xs *url = xs_fmt("%s", ntfy_server);
14- //xs *body = xs_fmt("\"text\":\"%s\"}", msg);
15 xs *body = xs_fmt("%s", msg);
16
17 xs *headers = xs_dict_new();