mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
'Accept' messages are processed.
This commit is contained in:
parent
05bf4b2c3c
commit
8ac32f0d81
1 changed files with 10 additions and 2 deletions
|
@ -549,11 +549,19 @@ void process_message(snac *snac, char *msg, char *req)
|
|||
snac_debug(snac, 1, xs_fmt("ignored 'Create' for object type '%s'", utype));
|
||||
}
|
||||
else
|
||||
/*
|
||||
if (strcmp(type, "Accept") == 0) {
|
||||
if (strcmp(utype, "Follow") == 0) {
|
||||
if (following_check(snac, actor)) {
|
||||
following_add(snac, actor, msg);
|
||||
snac_log(snac, xs_fmt("confirmed follow from %s", actor));
|
||||
}
|
||||
else
|
||||
snac_log(snac, xs_fmt("spurious follow accept from %s", actor));
|
||||
}
|
||||
else
|
||||
snac_debug(snac, 1, xs_fmt("ignored 'Accept' for object type '%s'", utype));
|
||||
}
|
||||
else
|
||||
*/
|
||||
if (strcmp(type, "Like") == 0) {
|
||||
if (xs_type(object) == XSTYPE_DICT)
|
||||
object = xs_dict_get(object, "id");
|
||||
|
|
Loading…
Reference in a new issue