diff options
| author | 2023-05-30 18:51:53 +0200 | |
|---|---|---|
| committer | 2023-05-30 18:51:53 +0200 | |
| commit | 6c2ca0d40aab36e9f25a7145b9fba47286e74850 (patch) | |
| tree | d1facf30ab09828f2de5b850ec80803b3a59e57a | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-6c2ca0d40aab36e9f25a7145b9fba47286e74850.tar.gz snac2-6c2ca0d40aab36e9f25a7145b9fba47286e74850.tar.xz snac2-6c2ca0d40aab36e9f25a7145b9fba47286e74850.zip | |
Don't store votes in the notification area.
| -rw-r--r-- | activitypub.c | 4 |
1 files changed, 4 insertions, 0 deletions
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, | |||
| 495 | 495 | ||
| 496 | if (xs_list_in(rcpts, snac->actor) == -1) | 496 | if (xs_list_in(rcpts, snac->actor) == -1) |
| 497 | return; | 497 | return; |
| 498 | |||
| 499 | /* discard votes */ | ||
| 500 | if (!xs_is_null(xs_dict_get(msg, "name"))) | ||
| 501 | return; | ||
| 498 | } | 502 | } |
| 499 | 503 | ||
| 500 | if (strcmp(type, "Undo") == 0 && strcmp(utype, "Follow") != 0) | 504 | if (strcmp(type, "Undo") == 0 && strcmp(utype, "Follow") != 0) |