pull/4607/head
Felix Ableitner 2 months ago
parent 1192fcc06b
commit 571dbef111

@ -747,10 +747,7 @@ test("Block post that contains banned URL", async () => {
});
test("Fetch post with redirect", async () => {
let alphaPost = await createPost(
alpha,
betaCommunity!.community.id,
);
let alphaPost = await createPost(alpha, betaCommunity!.community.id);
expect(alphaPost.post_view.post).toBeDefined();
// beta fetches from alpha as usual
@ -763,7 +760,7 @@ test("Fetch post with redirect", async () => {
// fetch remote object from local url, which redirects to the original url
let form: ResolveObject = {
q: `http://lemmy-gamma:8561/post/${gammaPost.post!.post.id}`
q: `http://lemmy-gamma:8561/post/${gammaPost.post!.post.id}`,
};
let gammaPost2 = await gamma.resolveObject(form);
expect(gammaPost2.post).toBeDefined();

Loading…
Cancel
Save