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)
1057 msg = xs_dict_set(msg, "closed", end_time); 1057 msg = xs_dict_set(msg, "closed", end_time);
1058 } 1058 }
1059 1059
1060 /* update the count of voters */
1061 xs *vcnt = xs_number_new(xs_list_len(rcpts));
1062 msg = xs_dict_set(msg, "votersCount", vcnt);
1063
1060 /* store */ 1064 /* store */
1061 object_add_ow(id, msg); 1065 object_add_ow(id, msg);
1062 1066