From 56c1c4ac7684c7f76034893f20e3ca8c2bdce501 Mon Sep 17 00:00:00 2001 From: Donatas Kirda Date: Sun, 11 May 2025 21:49:56 +0300 Subject: [PATCH] Fix: Missing argument --- src/routes/api/post/+server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api/post/+server.js b/src/routes/api/post/+server.js index d16812c..eb80d78 100644 --- a/src/routes/api/post/+server.js +++ b/src/routes/api/post/+server.js @@ -19,7 +19,7 @@ export async function GET({ url }) { withMetrics: showMetrics, }); - const comments = getComments ? await getCommentsForPost(post_id) : null; + const comments = getComments ? await getCommentsForPost(null, post_id) : null; return new Response(jsonSerialize({ post: post,