summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar grunfink2024-01-13 13:53:40 +0000
committerGravatar grunfink2024-01-13 13:53:40 +0000
commitd02116297883d2ff15d7ea58810e915a956a6928 (patch)
tree030e9f864e04690bb44343588763e1b0f0bb5103 /activitypub.c
parentRewritten a sentence to be clearer in README.md. (diff)
parentFixed a bug introduced yesterday that cause double notifications (diff)
downloadsnac2-d02116297883d2ff15d7ea58810e915a956a6928.tar.gz
snac2-d02116297883d2ff15d7ea58810e915a956a6928.tar.xz
snac2-d02116297883d2ff15d7ea58810e915a956a6928.zip
Merge pull request 'Fixed a bug introduced yesterday that caused double notifications' (#103) from draga79/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/103
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 566c240..57a5680 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -799,8 +799,6 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
799 if (strcmp(utype, "Follow") == 0) 799 if (strcmp(utype, "Follow") == 0)
800 objid = actor; 800 objid = actor;
801 801
802 notify_add(snac, type, utype, actor, objid != NULL ? objid : id);
803
804 /* ntfy */ 802 /* ntfy */
805 char *ntfy_server = xs_dict_get(snac->config, "ntfy_server"); 803 char *ntfy_server = xs_dict_get(snac->config, "ntfy_server");
806 char *ntfy_token = xs_dict_get(snac->config, "ntfy_token"); 804 char *ntfy_token = xs_dict_get(snac->config, "ntfy_token");