Fix: API getPost args mixed up

This commit is contained in:
2024-05-20 23:03:19 +03:00
parent e2639b0e4d
commit 262eef8415
+1 -1
View File
@@ -15,7 +15,7 @@ export async function GET({ url }) {
const getComments = !!url.searchParams.get('comments');
const showMetrics = !!url.searchParams.get('metrics');
const post = await getPost(post_id, {
const post = await getPost(post_id, null, {
withMetrics: showMetrics,
});