commit 199d71d
default
·
2024-02-05 10:50:59 +0000 UTC
parent 729ad47
Skip our own notifications.
1 files changed,
+4,
-0
+4,
-0
1@@ -823,6 +823,10 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag)
2 void notify(snac *snac, const char *type, const char *utype, const char *actor, const xs_dict *msg)
3 /* notifies the user of relevant events */
4 {
5+ /* skip our own notifications */
6+ if (strcmp(snac->actor, actor) == 0)
7+ return;
8+
9 const char *id = xs_dict_get(msg, "id");
10
11 if (strcmp(type, "Create") == 0) {