{:ok, _delete, _} = SideEffects.handle(delete)
ObanHelpers.perform_all()
- refute User.get_cached_by_ap_id(user.ap_id)
+ assert User.get_cached_by_ap_id(user.ap_id).deactivated
end
end
{:ok, _} = Transmogrifier.handle_incoming(data)
ObanHelpers.perform_all()
- refute User.get_cached_by_ap_id(ap_id)
+ assert User.get_cached_by_ap_id(ap_id).deactivated
end
test "it fails for incoming user deletes with spoofed origin" do
ObanHelpers.perform_all()
- refute User.get_by_nickname(user.nickname)
+ assert User.get_by_nickname(user.nickname).deactivated
log_entry = Repo.one(ModerationLog)