From 82d57557bb9a16f18ed5acc874d283ef0e9f47f5 Mon Sep 17 00:00:00 2001 From: Stefano Marinelli Date: Fri, 12 Jan 2024 09:07:55 +0000 Subject: [PATCH] ntfy code cleanup --- activitypub.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activitypub.c b/activitypub.c index d937726..566c240 100644 --- a/activitypub.c +++ b/activitypub.c @@ -805,7 +805,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor, char *ntfy_server = xs_dict_get(snac->config, "ntfy_server"); char *ntfy_token = xs_dict_get(snac->config, "ntfy_token"); - if (!xs_is_null(ntfy_server) && *ntfy_server ) + if (!xs_is_null(ntfy_server) && *ntfy_server) enqueue_ntfy(body, ntfy_server, ntfy_token); /* finally, store it in the notification folder */ @@ -2156,7 +2156,6 @@ void process_queue_item(xs_dict *q_item) int status = 0; xs *url = xs_fmt("%s", ntfy_server); - //xs *body = xs_fmt("\"text\":\"%s\"}", msg); xs *body = xs_fmt("%s", msg); xs *headers = xs_dict_new();