snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 7e63766e4a609ee0877474332f6406cc4fd9dbd9
parent ab0ab30da0228b9a80039a524304fea64f24bade
Author: default <nobody@localhost>
Date:   Tue, 22 Aug 2023 20:12:22 +0200

Also propagate the 'conversation' field, if there is one.

Diffstat:
Mactivitypub.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/activitypub.c b/activitypub.c @@ -1122,6 +1122,10 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, if ((v = xs_dict_get(p_msg, "context"))) ctxt = xs_dup(v); + /* propagate the conversation field, if there is one */ + if ((v = xs_dict_get(p_msg, "conversation"))) + msg = xs_dict_append(msg, "conversation", v); + /* if this message is public, ours will also be */ if (!priv && is_msg_public(p_msg) && xs_list_in(to, public_address) == -1) to = xs_list_append(to, public_address);