mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 重复剪藏相同的页面后创建的文档不跟随机数 Fix https://github.com/siyuan-note/siyuan/issues/6851
This commit is contained in:
parent
c2d1686164
commit
81527c7b7c
1 changed files with 0 additions and 4 deletions
|
|
@ -24,7 +24,6 @@ import (
|
|||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/lute/ast"
|
||||
"github.com/siyuan-note/logging"
|
||||
"github.com/siyuan-note/siyuan/kernel/search"
|
||||
|
|
@ -35,9 +34,6 @@ import (
|
|||
|
||||
func createDocsByHPath(boxID, hPath, content string) (id string, existed bool, err error) {
|
||||
hPath = strings.TrimSuffix(hPath, ".sy")
|
||||
if existed = nil != treenode.GetBlockTreeRootByHPath(boxID, hPath); existed {
|
||||
hPath += "-" + gulu.Rand.String(7)
|
||||
}
|
||||
pathBuilder := bytes.Buffer{}
|
||||
pathBuilder.WriteString("/")
|
||||
hPathBuilder := bytes.Buffer{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue