mirror of
https://github.com/studiokaiji/nostr-webhost.git
synced 2025-12-17 23:04:23 +01:00
dタグをパス形式にした
This commit is contained in:
@@ -52,8 +52,7 @@ func pathToKind(path string, replaceable bool) (int, error) {
|
||||
|
||||
// Replaceableにする場合のidentifier(dタグ)を取得
|
||||
func getReplaceableIdentifier(indexHtmlIdentifier, filePath string) string {
|
||||
encodedFilePath := strings.ReplaceAll(filePath, "/", "_")
|
||||
return indexHtmlIdentifier + "-" + encodedFilePath
|
||||
return indexHtmlIdentifier + "/" + filePath[1:]
|
||||
}
|
||||
|
||||
var nostrEventsQueue []*nostr.Event
|
||||
|
||||
Reference in New Issue
Block a user