diff options
| author | 2025-02-20 18:15:48 +0100 | |
|---|---|---|
| committer | 2025-02-20 18:15:48 +0100 | |
| commit | d19fe4157ced8789e43b7c061b11fcc7baf91c78 (patch) | |
| tree | d25f7a76f71ce09cbb5f097d779db668fcf8acb5 | |
| parent | duplicate dict instead (diff) | |
| download | penes-snac2-d19fe4157ced8789e43b7c061b11fcc7baf91c78.tar.gz penes-snac2-d19fe4157ced8789e43b7c061b11fcc7baf91c78.tar.xz penes-snac2-d19fe4157ced8789e43b7c061b11fcc7baf91c78.zip | |
use xs_dict_append correctly
| -rw-r--r-- | activitypub.c | 6 |
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, | |||
| 1026 | from, email, subject); | 1026 | from, email, subject); |
| 1027 | 1027 | ||
| 1028 | xs *mailinfo = xs_dict_new(); | 1028 | xs *mailinfo = xs_dict_new(); |
| 1029 | xs_dict_append(mailinfo, "from", from); | 1029 | mailinfo = xs_dict_append(mailinfo, "from", from); |
| 1030 | xs_dict_append(mailinfo, "to", email); | 1030 | mailinfo = xs_dict_append(mailinfo, "to", email); |
| 1031 | xs_dict_append(mailinfo, "body", xs_fmt("%s%s", header, body)); | 1031 | mailinfo = xs_dict_append(mailinfo, "body", xs_fmt("%s%s", header, body)); |
| 1032 | 1032 | ||
| 1033 | enqueue_email(mailinfo, 0); | 1033 | enqueue_email(mailinfo, 0); |
| 1034 | } | 1034 | } |