diff options
| -rw-r--r-- | activitypub.c | 4 |
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) | |||
| 823 | void notify(snac *snac, const char *type, const char *utype, const char *actor, const xs_dict *msg) | 823 | void notify(snac *snac, const char *type, const char *utype, const char *actor, const xs_dict *msg) |
| 824 | /* notifies the user of relevant events */ | 824 | /* notifies the user of relevant events */ |
| 825 | { | 825 | { |
| 826 | /* skip our own notifications */ | ||
| 827 | if (strcmp(snac->actor, actor) == 0) | ||
| 828 | return; | ||
| 829 | |||
| 826 | const char *id = xs_dict_get(msg, "id"); | 830 | const char *id = xs_dict_get(msg, "id"); |
| 827 | 831 | ||
| 828 | if (strcmp(type, "Create") == 0) { | 832 | if (strcmp(type, "Create") == 0) { |