We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8928ac commit 47040a8Copy full SHA for 47040a8
src/service/post/post-file-map.ts
@@ -67,8 +67,9 @@ export namespace PostFileMapManager {
67
export function getFilePath(postId: number) {
68
const map = findByPostId(postId)
69
if (map === undefined) return
70
- if (map[1] === '') return
71
- return map[1]
+ const path = map[1]
+ if (path === '') return
72
+ return path.startsWith('/') ? Uri.parse(path).fsPath : path
73
}
74
75
export function getPostId(filePath: string) {
0 commit comments