mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
'Announce' messages also try to bring the announced actor.
This commit is contained in:
parent
fc6a125146
commit
045498652f
1 changed files with 9 additions and 2 deletions
|
@ -647,9 +647,16 @@ void process_message(snac *snac, char *msg, char *req)
|
||||||
char *who = xs_dict_get(a_msg, "attributedTo");
|
char *who = xs_dict_get(a_msg, "attributedTo");
|
||||||
|
|
||||||
if (who && !is_muted(snac, who)) {
|
if (who && !is_muted(snac, who)) {
|
||||||
|
/* bring the actor */
|
||||||
|
xs *who_o = NULL;
|
||||||
|
|
||||||
|
if (valid_status(actor_request(snac, who, &who_o))) {
|
||||||
timeline_admire(snac, object, actor, 0);
|
timeline_admire(snac, object, actor, 0);
|
||||||
snac_log(snac, xs_fmt("new 'Announce' %s %s", actor, object));
|
snac_log(snac, xs_fmt("new 'Announce' %s %s", actor, object));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
snac_log(snac, xs_fmt("dropped 'Announce' on actor request error %s", who));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
snac_log(snac, xs_fmt("ignored 'Announce' about muted actor %s", who));
|
snac_log(snac, xs_fmt("ignored 'Announce' about muted actor %s", who));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue