From 0444b77da58d0370c91ce9a4b946513c0c7323e2 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 30 May 2023 10:38:17 +0200 Subject: [PATCH] Made msg_question() non-editable. --- activitypub.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activitypub.c b/activitypub.c index c29a14b..9951f39 100644 --- 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;