snac2

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

commit 5b1e77118420bf680a55116b940475d56fbe0cea
parent d7f2a91161cf128b7b3363d9971decb491852618
Author: default <nobody@localhost>
Date:   Mon, 17 Jun 2024 14:57:05 +0200

Deleted repeated code.

Diffstat:
Mactivitypub.c | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/activitypub.c b/activitypub.c @@ -927,13 +927,6 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor, if (!xs_is_null(bot) && !xs_is_null(chat_id) && *bot && *chat_id) enqueue_telegram(body, bot, chat_id); - /* finally, store it in the notification folder */ - if (strcmp(type, "Follow") == 0) - objid = id; - else - if (strcmp(utype, "Follow") == 0) - objid = actor; - /* ntfy */ const char *ntfy_server = xs_dict_get(snac->config, "ntfy_server"); const char *ntfy_token = xs_dict_get(snac->config, "ntfy_token");