Fix: API getPost args mixed up
This commit is contained in:
parent
e2639b0e4d
commit
262eef8415
@ -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,
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user