🎨 Browser clipping extension supports configuring document tags https://github.com/siyuan-note/siyuan/issues/10797

This commit is contained in:
Daniel 2024-09-20 11:49:07 +08:00
parent d4133473a4
commit 2472c63177
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 21 additions and 2 deletions

View file

@ -673,6 +673,12 @@ func createDocWithMd(c *gin.Context) {
return
}
tagsArg := arg["tags"]
var tags string
if nil != tagsArg {
tags = tagsArg.(string)
}
var parentID string
parentIDArg := arg["parentID"]
if nil != parentIDArg {
@ -706,7 +712,7 @@ func createDocWithMd(c *gin.Context) {
withMath = withMathArg.(bool)
}
id, err := model.CreateWithMarkdown(notebook, hPath, markdown, parentID, id, withMath)
id, err := model.CreateWithMarkdown(tags, notebook, hPath, markdown, parentID, id, withMath)
if err != nil {
ret.Code = -1
ret.Msg = err.Error()