fix: getPage mustLocal
This commit is contained in:
@@ -372,7 +372,7 @@ export async function getPage<TRender extends boolean = false>(input: {
|
||||
noteId?: number
|
||||
handle?: string // In order to be compatible with old drafts
|
||||
}) {
|
||||
const mustLocal = input.slug?.startsWith("local-")
|
||||
const mustLocal = input.slug?.startsWith("local-") && !input.noteId
|
||||
|
||||
let page: NoteEntity | null = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user