diff options
| author | green <dandelions@disroot.org> | 2025-05-05 22:52:50 +0200 |
|---|---|---|
| committer | green <dandelions@disroot.org> | 2026-01-24 02:23:16 +0100 |
| commit | ce8e11adc74015931d9adac6f3b108e7ec31fbf5 (patch) | |
| tree | 927fc01463a59546e4ce0704e345e852f04b87b2 /activitypub.c | |
| parent | 207d9e0f01b1703ed55b00825ef65be49576254b (diff) | |
personal: bigger limit for polls
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 5 |
1 files changed, 3 insertions, 2 deletions
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, "..."); } |