summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'data.c')
-rw-r--r--data.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/data.c b/data.c
index 27f62a9..8da0888 100644
--- a/data.c
+++ b/data.c
@@ -1935,6 +1935,19 @@ void enqueue_close_question(snac *user, const char *id, int end_secs)
1935} 1935}
1936 1936
1937 1937
1938void enqueue_request_replies(snac *user, const char *id)
1939/* enqueues a request for the replies of a message */
1940{
1941 xs *qmsg = _new_qmsg("request_replies", id, 0);
1942 char *ntid = xs_dict_get(qmsg, "ntid");
1943 xs *fn = xs_fmt("%s/queue/%s.json", user->basedir, ntid);
1944
1945 qmsg = _enqueue_put(fn, qmsg);
1946
1947 snac_debug(user, 0, xs_fmt("enqueue_request_replies %s", id));
1948}
1949
1950
1938int was_question_voted(snac *user, const char *id) 1951int was_question_voted(snac *user, const char *id)
1939/* returns true if the user voted in this poll */ 1952/* returns true if the user voted in this poll */
1940{ 1953{