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