From ce8e11adc74015931d9adac6f3b108e7ec31fbf5 Mon Sep 17 00:00:00 2001 From: green Date: Mon, 5 May 2025 22:52:50 +0200 Subject: personal: bigger limit for polls --- activitypub.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index 2890a94..8964030 100644 --- a/activitypub.c +++ b/activitypub.c @@ -2321,6 +2321,7 @@ xs_dict *msg_question(snac *user, const char *content, xs_list *attach, /* creates a Question message */ { xs_dict *msg = msg_note(user, content, NULL, NULL, attach, 0, NULL, NULL); + int max_line = 200; int max = 8; const xs_number *max_options = xs_dict_get(srv_config, "max_poll_options"); xs_set seen; @@ -2345,8 +2346,8 @@ xs_dict *msg_question(snac *user, const char *content, xs_list *attach, xs *v2 = xs_dup(v); xs *d = xs_dict_new(); - if (strlen(v2) > 60) { - v2[60] = '\0'; + if (strlen(v2) > max_line) { + v2[max_line] = '\0'; v2 = xs_str_cat(v2, "..."); } -- cgit v1.2.3