summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authorGravatar shtrophic2025-03-08 22:29:50 +0100
committerGravatar shtrophic2025-03-08 22:29:50 +0100
commit398b733b2c0ff4c96f4de9731a864373842e86d6 (patch)
treee2a381ee39d7139cf13c953c5ddad8e59bf8163f /mastoapi.c
parentMerge branch 'master' into curl-smtp (diff)
parentUpdated RELEASE_NOTES. (diff)
downloadpenes-snac2-398b733b2c0ff4c96f4de9731a864373842e86d6.tar.gz
penes-snac2-398b733b2c0ff4c96f4de9731a864373842e86d6.tar.xz
penes-snac2-398b733b2c0ff4c96f4de9731a864373842e86d6.zip
Merge remote-tracking branch 'upstream/master' into curl-smtp
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 797a4da..1927b0a 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -2684,7 +2684,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
2684 if (strcmp(visibility, "public") == 0) 2684 if (strcmp(visibility, "public") == 0)
2685 scope = 0; 2685 scope = 0;
2686 2686
2687 xs *msg = msg_note(&snac, content, NULL, irt, attach_list, scope, language); 2687 xs *msg = msg_note(&snac, content, NULL, irt, attach_list, scope, language, NULL);
2688 2688
2689 if (!xs_is_null(summary) && *summary) { 2689 if (!xs_is_null(summary) && *summary) {
2690 msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE)); 2690 msg = xs_dict_set(msg, "sensitive", xs_stock(XSTYPE_TRUE));
@@ -3034,7 +3034,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
3034 if (o) { 3034 if (o) {
3035 const char *name = xs_dict_get(o, "name"); 3035 const char *name = xs_dict_get(o, "name");
3036 3036
3037 xs *msg = msg_note(&snac, "", atto, (char *)id, NULL, 1, NULL); 3037 xs *msg = msg_note(&snac, "", atto, (char *)id, NULL, 1, NULL, NULL);
3038 msg = xs_dict_append(msg, "name", name); 3038 msg = xs_dict_append(msg, "name", name);
3039 3039
3040 xs *c_msg = msg_create(&snac, msg); 3040 xs *c_msg = msg_create(&snac, msg);