["$(alice_followers)"="0"]&& ok "PrivaPub forgets mastouser"|| ko "PrivaPub still counts mastouser"
# (nothing goes to Mastodon for a follower PrivaPub does not know of: alice names mastouser, so her post still goes there)
quiet_post "@mastouser@mastodon.test for my followers $run"
until_true 60'[ "$(m_follows)" = "False" ]'&& ok "Mastodon reads alice's roll-call and drops the follow"|| ko "Mastodon still has mastouser following alice"
echo" a follow Mastodon lost"
follow_from_m && ok "mastouser follows alice again"|| ko "mastouser could not follow alice again"
m_rails "a = Account.find_local(\"mastouser\"); t = Account.find_by(uri: \"$alice_uri\"); Follow.where(account: a, target_account: t).destroy_all" >/dev/null
["$(m_follows)"="False"]&& ok "Mastodon forgets the follow"|| ko "Mastodon still has the follow"
quiet_post "for my followers again $run"
until_true 60'[ "$(alice_followers)" = "0" ]'&& ok "Mastodon reads the roll-call and undoes the follow PrivaPub had"|| ko "PrivaPub still counts mastouser"
["$(m_followed_by alice_sync)"="False"]&& ok "Mastodon forgets alice's follow"|| ko "Mastodon still has alice's follow"
m_quiet "for my followers $run"
until_true 60'[ "$(p_follows "$AH")" = "False" ]'&& ok "PrivaPub reads mastouser's list and ends alice's follow"|| ko "alice still follows mastouser on PrivaPub"
["$(p_follows "$BH")"="True"]&& ok "bob's follow stays"|| ko "bob's follow ended too"
curl -s -o /dev/null -X POST -H "$AH""$P/api/v1/accounts/$m_on_p/follow"
until_true 45'[ "$(p_follows "$AH")" = "True" ] && [ "$(m_followed_by alice_sync)" = "True" ]'&& ok "alice follows mastouser again"|| ko "alice could not follow mastouser again"
["$(p_follows "$AH")"="False"]&& ok "PrivaPub forgets alice's follow"|| ko "PrivaPub still has alice's follow"
m_quiet "for my followers again $run"
until_true 60'[ "$(m_followed_by alice_sync)" = "False" ]'&& ok "PrivaPub undoes the follow only Mastodon remembered"|| ko "Mastodon still has alice following mastouser"