uploadedMediaFiles => uploadedMediaFilePathToURL

This commit is contained in:
studiokaiji
2023-11-09 04:04:00 +09:00
parent d9e34dfe3d
commit c931c2975b
3 changed files with 15 additions and 15 deletions

View File

@@ -156,7 +156,7 @@ func convertLinks(
// jsファイルを解析する
if strings.HasSuffix(a.Val, ".js") {
// アップロード済みファイルの元パスとURLを取得
for path, url := range uploadedMediaFiles {
for path, url := range uploadedMediaFilePathToURL {
// JS内に該当ファイルがあったら置換
content = strings.ReplaceAll(content, path, url)
}