diff options
| author | 2023-01-20 10:09:32 +0100 | |
|---|---|---|
| committer | 2023-01-20 10:09:32 +0100 | |
| commit | 7199c00403c4fe3061e76c29f90fa0331fb30474 (patch) | |
| tree | 1c9fc2caef659c33e4cd417924cce954ad69d6ed | |
| parent | Updated year in copyright notices. (diff) | |
| download | snac2-7199c00403c4fe3061e76c29f90fa0331fb30474.tar.gz snac2-7199c00403c4fe3061e76c29f90fa0331fb30474.tar.xz snac2-7199c00403c4fe3061e76c29f90fa0331fb30474.zip | |
In msg_note(), store the original content in the sourceContent field.
| -rw-r--r-- | activitypub.c | 2 |
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 | |||
| 733 | msg = xs_dict_append(msg, "inReplyTo", irt); | 733 | msg = xs_dict_append(msg, "inReplyTo", irt); |
| 734 | msg = xs_dict_append(msg, "tag", tag); | 734 | msg = xs_dict_append(msg, "tag", tag); |
| 735 | 735 | ||
| 736 | msg = xs_dict_append(msg, "sourceContent", content); | ||
| 737 | |||
| 736 | if (atls != NULL) | 738 | if (atls != NULL) |
| 737 | msg = xs_dict_append(msg, "attachment", atls); | 739 | msg = xs_dict_append(msg, "attachment", atls); |
| 738 | 740 | ||