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.
2 parents 674c8d3 + 47040a8 commit 4b45751Copy full SHA for 4b45751
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