diff options
| author | 2023-08-22 20:12:22 +0200 | |
|---|---|---|
| committer | 2023-08-22 20:12:22 +0200 | |
| commit | 7e63766e4a609ee0877474332f6406cc4fd9dbd9 (patch) | |
| tree | 5884b5dd658d0a9eb87b8d57b7991c52b1048485 /activitypub.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-7e63766e4a609ee0877474332f6406cc4fd9dbd9.tar.gz snac2-7e63766e4a609ee0877474332f6406cc4fd9dbd9.tar.xz snac2-7e63766e4a609ee0877474332f6406cc4fd9dbd9.zip | |
Also propagate the 'conversation' field, if there is one.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index a48749d..da5ea95 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1122,6 +1122,10 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, | |||
| 1122 | if ((v = xs_dict_get(p_msg, "context"))) | 1122 | if ((v = xs_dict_get(p_msg, "context"))) |
| 1123 | ctxt = xs_dup(v); | 1123 | ctxt = xs_dup(v); |
| 1124 | 1124 | ||
| 1125 | /* propagate the conversation field, if there is one */ | ||
| 1126 | if ((v = xs_dict_get(p_msg, "conversation"))) | ||
| 1127 | msg = xs_dict_append(msg, "conversation", v); | ||
| 1128 | |||
| 1125 | /* if this message is public, ours will also be */ | 1129 | /* if this message is public, ours will also be */ |
| 1126 | if (!priv && is_msg_public(p_msg) && xs_list_in(to, public_address) == -1) | 1130 | if (!priv && is_msg_public(p_msg) && xs_list_in(to, public_address) == -1) |
| 1127 | to = xs_list_append(to, public_address); | 1131 | to = xs_list_append(to, public_address); |