mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Fixed confusion in Undo + Follow processing.
This commit is contained in:
parent
6a77c634ad
commit
528f6463b2
1 changed files with 9 additions and 5 deletions
|
@ -1947,12 +1947,16 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
|||
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));
|
||||
do_notify = 1;
|
||||
if (id && strcmp(id, snac->actor) != 0)
|
||||
snac_debug(snac, 1, xs_fmt("Undo + Follow from %s not for us (%s)", actor, id));
|
||||
else {
|
||||
if (valid_status(follower_del(snac, actor))) {
|
||||
snac_log(snac, xs_fmt("no longer following us %s", actor));
|
||||
do_notify = 1;
|
||||
}
|
||||
else
|
||||
snac_log(snac, xs_fmt("error deleting follower %s", actor));
|
||||
}
|
||||
else
|
||||
snac_log(snac, xs_fmt("error deleting follower %s", actor));
|
||||
}
|
||||
else
|
||||
if (strcmp(utype, "Like") == 0) { /** **/
|
||||
|
|
Loading…
Reference in a new issue