mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
When updating the user info, also spam the following list.
This commit is contained in:
parent
83aad1b7a4
commit
b5eaabe77e
1 changed files with 11 additions and 1 deletions
|
@ -555,7 +555,7 @@ d_char *msg_accept(snac *snac, char *object, char *to)
|
|||
xs_dict *msg_update(snac *snac, xs_dict *object)
|
||||
/* creates an Update message */
|
||||
{
|
||||
d_char *msg = msg_base(snac, "Update", "@object", snac->actor, "@now", object);
|
||||
xs_dict *msg = msg_base(snac, "Update", "@object", snac->actor, "@now", object);
|
||||
|
||||
char *type = xs_dict_get(object, "type");
|
||||
|
||||
|
@ -563,6 +563,16 @@ xs_dict *msg_update(snac *snac, xs_dict *object)
|
|||
msg = xs_dict_append(msg, "to", xs_dict_get(object, "to"));
|
||||
msg = xs_dict_append(msg, "cc", xs_dict_get(object, "cc"));
|
||||
}
|
||||
else
|
||||
if (strcmp(type, "Person") == 0) {
|
||||
msg = xs_dict_append(msg, "to", public_address);
|
||||
|
||||
/* also spam the people being followed, so that
|
||||
they have the newest information about who we are */
|
||||
xs *cc = following_list(snac);
|
||||
|
||||
msg = xs_dict_append(msg, "cc", cc);
|
||||
}
|
||||
else
|
||||
msg = xs_dict_append(msg, "to", public_address);
|
||||
|
||||
|
|
Loading…
Reference in a new issue