- let betaCommunity = (await resolveCommunity(beta, communityRes.community.actor_id)).community.unwrap();
- let bannedUserInfo1 = (await getSite(gamma)).my_user.unwrap().local_user_view.person;
- let bannedUserInfo2 = (await resolvePerson(beta, bannedUserInfo1.actor_id)).person.unwrap();
- let banRes = (await banPersonFromCommunity(beta, bannedUserInfo2.person.id, betaCommunity.community.id, true, true));
- console.log(banRes);
+ let betaCommunity = (
+ await resolveCommunity(beta, communityRes.community.actor_id)
+ ).community.unwrap();
+ let bannedUserInfo1 = (await getSite(gamma)).my_user.unwrap().local_user_view
+ .person;
+ let bannedUserInfo2 = (
+ await resolvePerson(beta, bannedUserInfo1.actor_id)
+ ).person.unwrap();
+ let banRes = await banPersonFromCommunity(
+ beta,
+ bannedUserInfo2.person.id,
+ betaCommunity.community.id,
+ true,
+ true
+ );