summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar green2026-01-24 02:14:18 +0100
committerGravatar green2026-01-24 02:23:16 +0100
commitcc013a5af8a661a954a15bf46a2feb17d8574855 (patch)
tree626c835e98af75b321e892b6ec50e79b1ac66796 /activitypub.c
parentpersonal: bigger limit for polls (diff)
downloadsnac2-cc013a5af8a661a954a15bf46a2feb17d8574855.tar.gz
snac2-cc013a5af8a661a954a15bf46a2feb17d8574855.tar.xz
snac2-cc013a5af8a661a954a15bf46a2feb17d8574855.zip
poll-limit: fix warning
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 8964030..e9e28be 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -17,6 +17,7 @@
17 17
18#include "snac.h" 18#include "snac.h"
19 19
20#include <stddef.h>
20#include <sys/wait.h> 21#include <sys/wait.h>
21 22
22const char * const public_address = "https:/" "/www.w3.org/ns/activitystreams#Public"; 23const char * const public_address = "https:/" "/www.w3.org/ns/activitystreams#Public";
@@ -2321,8 +2322,8 @@ xs_dict *msg_question(snac *user, const char *content, xs_list *attach,
2321/* creates a Question message */ 2322/* creates a Question message */
2322{ 2323{
2323 xs_dict *msg = msg_note(user, content, NULL, NULL, attach, 0, NULL, NULL); 2324 xs_dict *msg = msg_note(user, content, NULL, NULL, attach, 0, NULL, NULL);
2324 int max_line = 200; 2325 size_t max_line = 200;
2325 int max = 8; 2326 int max = 8;
2326 const xs_number *max_options = xs_dict_get(srv_config, "max_poll_options"); 2327 const xs_number *max_options = xs_dict_get(srv_config, "max_poll_options");
2327 xs_set seen; 2328 xs_set seen;
2328 2329