diff options
author | Stefano Marinelli <draga79@noreply.codeberg.org> | 2024-01-12 09:07:55 +0000 |
---|---|---|
committer | Stefano Marinelli <draga79@noreply.codeberg.org> | 2024-01-12 09:07:55 +0000 |
commit | 82d57557bb9a16f18ed5acc874d283ef0e9f47f5 (patch) | |
tree | 55d12af8b3e0f3f6d378c14250f9a7331f36e5e7 | |
parent | 13a0560f7bec80d75a13f6bf3842d894351427a4 (diff) |
ntfy code cleanup
-rw-r--r-- | activitypub.c | 3 |
1 files changed, 1 insertions, 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(); |