Fix: API getPost args mixed up

This commit is contained in:
Donatas Kirda 2024-05-20 23:03:19 +03:00
parent e2639b0e4d
commit 262eef8415
Signed by: bloodwiing
GPG Key ID: 63020D8D3F4A164F

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,
});