Fixed confusion in Undo + Follow processing.

This commit is contained in:
default 2024-05-02 07:25:22 +02:00
parent 6a77c634ad
commit 528f6463b2

View file

@ -1947,6 +1947,9 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
utype = "Follow"; utype = "Follow";
if (strcmp(utype, "Follow") == 0) { /** **/ if (strcmp(utype, "Follow") == 0) { /** **/
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))) { if (valid_status(follower_del(snac, actor))) {
snac_log(snac, xs_fmt("no longer following us %s", actor)); snac_log(snac, xs_fmt("no longer following us %s", actor));
do_notify = 1; do_notify = 1;
@ -1954,6 +1957,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
else else
snac_log(snac, xs_fmt("error deleting follower %s", actor)); snac_log(snac, xs_fmt("error deleting follower %s", actor));
} }
}
else else
if (strcmp(utype, "Like") == 0) { /** **/ if (strcmp(utype, "Like") == 0) { /** **/
int status = object_unadmire(id, actor, 1); int status = object_unadmire(id, actor, 1);