summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-30 10:38:17 +0200
committerdefault <nobody@localhost>2023-05-30 10:38:17 +0200
commit0444b77da58d0370c91ce9a4b946513c0c7323e2 (patch)
tree230cfe129a122a2fe75888c1575602fb943e77d8 /activitypub.c
parent42918d44a0931ddf58eff863c9e21e93f051f229 (diff)
Made msg_question() non-editable.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c3
1 files changed, 3 insertions, 0 deletions
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;