summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--activitypub.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index 13e17b3..39d1605 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -555,7 +555,7 @@ d_char *msg_accept(snac *snac, char *object, char *to)
555xs_dict *msg_update(snac *snac, xs_dict *object) 555xs_dict *msg_update(snac *snac, xs_dict *object)
556/* creates an Update message */ 556/* creates an Update message */
557{ 557{
558 d_char *msg = msg_base(snac, "Update", "@object", snac->actor, "@now", object); 558 xs_dict *msg = msg_base(snac, "Update", "@object", snac->actor, "@now", object);
559 559
560 char *type = xs_dict_get(object, "type"); 560 char *type = xs_dict_get(object, "type");
561 561
@@ -564,6 +564,16 @@ xs_dict *msg_update(snac *snac, xs_dict *object)
564 msg = xs_dict_append(msg, "cc", xs_dict_get(object, "cc")); 564 msg = xs_dict_append(msg, "cc", xs_dict_get(object, "cc"));
565 } 565 }
566 else 566 else
567 if (strcmp(type, "Person") == 0) {
568 msg = xs_dict_append(msg, "to", public_address);
569
570 /* also spam the people being followed, so that
571 they have the newest information about who we are */
572 xs *cc = following_list(snac);
573
574 msg = xs_dict_append(msg, "cc", cc);
575 }
576 else
567 msg = xs_dict_append(msg, "to", public_address); 577 msg = xs_dict_append(msg, "to", public_address);
568 578
569 return msg; 579 return msg;