]> Untitled Git - lemmy.git/blobdiff - api_tests/src/post.spec.ts
Only allow authenticated users to fetch remote objects (#2493)
[lemmy.git] / api_tests / src / post.spec.ts
index fe7e6c25cbe6c25caeb8c4ebbabaf640f6433cc6..edf85ebd2537ac6794edd44b7d616388b86f6f48 100644 (file)
@@ -32,7 +32,8 @@ import {
   registerUser,
   API,
   getSite,
-  unfollows
+  unfollows,
+  resolveCommunity
 } from './shared';
 
 let betaCommunity: CommunityView;
@@ -226,7 +227,8 @@ test('Delete a post', async () => {
 });
 
 test('Remove a post from admin and community on different instance', async () => {
-  let postRes = await createPost(gamma, betaCommunity.community.id);
+  let gammaCommunity = await resolveCommunity(gamma, betaCommunity.community.actor_id);
+  let postRes = await createPost(gamma, gammaCommunity.community.unwrap().community.id);
 
   let alphaPost = (await resolvePost(alpha, postRes.post_view.post)).post.unwrap();
   let removedPost = await removePost(alpha, true, alphaPost.post);