* Fix follow being stuck as pending after accept
* fix api test
betaCommunity.community.id
);
- // Wait for it to accept on the alpha side ( follows are async )
- await delay();
-
// Make sure the follow response went through
expect(follow.community_view.community.local).toBe(false);
expect(follow.community_view.community.name).toBe('main');
- expect(follow.community_view.subscribed).toBe(SubscribedType.Pending);
+ expect(follow.community_view.subscribed).toBe(SubscribedType.Subscribed);
// Check it from local
let site = await getSite(alpha);
.filter(community_id.eq(community_id_))
.filter(person_id.eq(person_id_)),
)
- .set(pending.eq(true))
+ .set(pending.eq(false))
.get_result::<Self>(conn)
}
fn unfollow(