From 6c2ca0d40aab36e9f25a7145b9fba47286e74850 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 30 May 2023 18:51:53 +0200 Subject: Don't store votes in the notification area. --- activitypub.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index d35a909..f9bd9ab 100644 --- a/activitypub.c +++ b/activitypub.c @@ -495,6 +495,10 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor, if (xs_list_in(rcpts, snac->actor) == -1) return; + + /* discard votes */ + if (!xs_is_null(xs_dict_get(msg, "name"))) + return; } if (strcmp(type, "Undo") == 0 && strcmp(utype, "Follow") != 0) -- cgit v1.2.3