summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
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 da64573..c80069b 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1057,6 +1057,10 @@ int update_question(snac *user, const char *id)
msg = xs_dict_set(msg, "closed", end_time);
}
+ /* update the count of voters */
+ xs *vcnt = xs_number_new(xs_list_len(rcpts));
+ msg = xs_dict_set(msg, "votersCount", vcnt);
+
/* store */
object_add_ow(id, msg);