diff options
author | default <nobody@localhost> | 2023-05-30 10:38:17 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-30 10:38:17 +0200 |
commit | 0444b77da58d0370c91ce9a4b946513c0c7323e2 (patch) | |
tree | 230cfe129a122a2fe75888c1575602fb943e77d8 | |
parent | 42918d44a0931ddf58eff863c9e21e93f051f229 (diff) |
Made msg_question() non-editable.
-rw-r--r-- | activitypub.c | 3 |
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; |