snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 82d57557bb9a16f18ed5acc874d283ef0e9f47f5
parent 13a0560f7bec80d75a13f6bf3842d894351427a4
Author: Stefano Marinelli <draga79@noreply.codeberg.org>
Date:   Fri, 12 Jan 2024 09:07:55 +0000

ntfy code cleanup

Diffstat:
Mactivitypub.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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();