From 199d71dc3a64ec9782b658b342f4695790495dcf Mon Sep 17 00:00:00 2001 From: default Date: Mon, 5 Feb 2024 11:50:59 +0100 Subject: Skip our own notifications. --- activitypub.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index 698758c..df4877b 100644 --- a/activitypub.c +++ b/activitypub.c @@ -823,6 +823,10 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag) void notify(snac *snac, const char *type, const char *utype, const char *actor, const xs_dict *msg) /* notifies the user of relevant events */ { + /* skip our own notifications */ + if (strcmp(snac->actor, actor) == 0) + return; + const char *id = xs_dict_get(msg, "id"); if (strcmp(type, "Create") == 0) { -- cgit v1.2.3