mirror of
https://github.com/studiokaiji/nostr-webhost.git
synced 2025-12-17 23:04:23 +01:00
uploadedMediaFiles => uploadedMediaFilePathToURL
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user