summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-05-30 10:38:17 +0200
committerGravatar default2023-05-30 10:38:17 +0200
commit0444b77da58d0370c91ce9a4b946513c0c7323e2 (patch)
tree230cfe129a122a2fe75888c1575602fb943e77d8
parentCreate polls from the web interface. (diff)
downloadpenes-snac2-0444b77da58d0370c91ce9a4b946513c0c7323e2.tar.gz
penes-snac2-0444b77da58d0370c91ce9a4b946513c0c7323e2.tar.xz
penes-snac2-0444b77da58d0370c91ce9a4b946513c0c7323e2.zip
Made msg_question() non-editable.
-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,
942 942
943 msg = xs_dict_set(msg, "type", "Question"); 943 msg = xs_dict_set(msg, "type", "Question");
944 944
945 /* make it non-editable */
946 msg = xs_dict_del(msg, "sourceContent");
947
945 xs *o = xs_list_new(); 948 xs *o = xs_list_new();
946 xs_list *p = (xs_list *)opts; 949 xs_list *p = (xs_list *)opts;
947 xs_str *v; 950 xs_str *v;