When importing CSV lists, also follow that accounts.

This commit is contained in:
default 2024-11-25 08:15:34 +01:00
parent 13647f790d
commit 15f352fe83

15
utils.c
View file

@ -782,6 +782,21 @@ void import_csv(snac *user)
list_content(user, list_id, actor_md5, 1);
snac_log(user, xs_fmt("Added %s to list %s", url, lname));
if (!following_check(user, url)) {
xs *msg = msg_follow(user, url);
if (msg == NULL) {
snac_log(user, xs_fmt("Cannot follow %s -- server down?", acct));
continue;
}
following_add(user, url, msg);
enqueue_output_by_actor(user, msg, url, 0);
snac_log(user, xs_fmt("Following %s", url));
}
}
else
snac_log(user, xs_fmt("Webfinger error while adding %s to list %s", acct, lname));