This commit is contained in:
Felix Ableitner 2024-02-27 10:39:19 +01:00
parent b9f8090567
commit 59c229158e
2 changed files with 2133 additions and 968 deletions

File diff suppressed because it is too large Load Diff

View File

@ -227,16 +227,18 @@ test("Sticky a post", async () => {
expect(betaPost3?.post.featured_community).toBe(false);
});
test("Collection of featured posts gets federated", async () => {
// create a new community and feature a post
let community = await createCommunity(alpha);
let post = await createPost(alpha,community.community_view.community.id);
let post = await createPost(alpha, community.community_view.community.id);
let featuredPost = await featurePost(alpha, true, post.post_view.post);
expect(featuredPost.post_view.post.featured_community).toBe(true);
// fetch the community, ensure that post is also fetched and marked as featured
let betaCommunity = (await resolveCommunity(beta, community.community_view.community.actor_id));
let betaCommunity = await resolveCommunity(
beta,
community.community_view.community.actor_id,
);
const betaPost = await waitForPost(
beta,