commit 0444b77da58d0370c91ce9a4b946513c0c7323e2
parent 42918d44a0931ddf58eff863c9e21e93f051f229
Author: default <nobody@localhost>
Date: Tue, 30 May 2023 10:38:17 +0200
Made msg_question() non-editable.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/activitypub.c b/activitypub.c
@@ -942,6 +942,9 @@ xs_dict *msg_question(snac *user, const char *content, xs_list *attach,
msg = xs_dict_set(msg, "type", "Question");
+ /* make it non-editable */
+ msg = xs_dict_del(msg, "sourceContent");
+
xs *o = xs_list_new();
xs_list *p = (xs_list *)opts;
xs_str *v;