]> Untitled Git - lemmy.git/blobdiff - api_tests/src/comment.spec.ts
Only allow authenticated users to fetch remote objects (#2493)
[lemmy.git] / api_tests / src / comment.spec.ts
index 47e6dba2d86bbfd6e8bc2325c9636c6b525dba07..ca9cc3da5c5af9ee5e6a32ba5290008183137de5 100644 (file)
@@ -30,6 +30,7 @@ import {
   unfollows,
   getComments,
   getCommentParentId,
+  resolveCommunity,
 } from './shared';
 
 let postRes: PostResponse;
@@ -293,8 +294,8 @@ test('Comment Search', async () => {
 
 test('A and G subscribe to B (center) A posts, G mentions B, it gets announced to A', async () => {
   // Create a local post
-  let alphaCommunity = await createCommunity(alpha, "main");
-  let alphaPost = await createPost(alpha, alphaCommunity.community_view.community.id);
+  let alphaCommunity = (await resolveCommunity(alpha, "!main@lemmy-alpha:8541")).community.unwrap();
+  let alphaPost = await createPost(alpha, alphaCommunity.community.id);
   expect(alphaPost.post_view.community.local).toBe(true);
 
   // Make sure gamma sees it