aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorshtrophic <christoph@liebender.dev>2025-02-20 18:15:48 +0100
committershtrophic <christoph@liebender.dev>2025-02-20 18:15:48 +0100
commitd19fe4157ced8789e43b7c061b11fcc7baf91c78 (patch)
treed25f7a76f71ce09cbb5f097d779db668fcf8acb5 /activitypub.c
parentb50631c0f7253e35310a14012e4fa9432aedfb5a (diff)
use xs_dict_append correctly
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c
index e2519e6..a209abd 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1026,9 +1026,9 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
from, email, subject);
xs *mailinfo = xs_dict_new();
- xs_dict_append(mailinfo, "from", from);
- xs_dict_append(mailinfo, "to", email);
- xs_dict_append(mailinfo, "body", xs_fmt("%s%s", header, body));
+ mailinfo = xs_dict_append(mailinfo, "from", from);
+ mailinfo = xs_dict_append(mailinfo, "to", email);
+ mailinfo = xs_dict_append(mailinfo, "body", xs_fmt("%s%s", header, body));
enqueue_email(mailinfo, 0);
}