mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
Added a special check for Undo + Follow.
This commit is contained in:
parent
91b656f111
commit
e9f391ed86
1 changed files with 3 additions and 0 deletions
|
@ -1588,6 +1588,9 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
|||
}
|
||||
else
|
||||
if (strcmp(type, "Undo") == 0) { /** **/
|
||||
if (xs_type(object) != XSTYPE_DICT)
|
||||
utype = "Follow";
|
||||
|
||||
if (strcmp(utype, "Follow") == 0) { /** **/
|
||||
if (valid_status(follower_del(snac, actor))) {
|
||||
snac_log(snac, xs_fmt("no longer following us %s", actor));
|
||||
|
|
Loading…
Reference in a new issue