summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-01-20 10:09:32 +0100
committerdefault <nobody@localhost>2023-01-20 10:09:32 +0100
commit7199c00403c4fe3061e76c29f90fa0331fb30474 (patch)
tree1c9fc2caef659c33e4cd417924cce954ad69d6ed
parenta38c7aeadcc69b3405d40b008a0b87f7c5d023dc (diff)
In msg_note(), store the original content in the sourceContent field.
-rw-r--r--activitypub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index 5e1fa79..5e020b1 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -733,6 +733,8 @@ d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to, char
msg = xs_dict_append(msg, "inReplyTo", irt);
msg = xs_dict_append(msg, "tag", tag);
+ msg = xs_dict_append(msg, "sourceContent", content);
+
if (atls != NULL)
msg = xs_dict_append(msg, "attachment", atls);