summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-02-05 11:50:59 +0100
committerdefault <nobody@localhost>2024-02-05 11:50:59 +0100
commit199d71dc3a64ec9782b658b342f4695790495dcf (patch)
tree7df533e4b3d07f6883be5f74b80f16fde457e210 /activitypub.c
parent729ad476f081e0ea63f90263ce5959b9889356f9 (diff)
Skip our own notifications.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 4 insertions, 0 deletions
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) {