Kaynağa Gözat

In msg_note(), store the original content in the sourceContent field.

default 3 yıl önce
ebeveyn
işleme
7199c00403
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      activitypub.c

+ 2 - 0
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);