mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🐛 Fix arg check https://github.com/Yimien/plugin-memos-sync/issues/16
This commit is contained in:
parent
73d232bafb
commit
7d2d76c57c
1 changed files with 2 additions and 2 deletions
|
|
@ -418,13 +418,13 @@ func insertBlock(c *gin.Context) {
|
||||||
}
|
}
|
||||||
if nil != arg["previousID"] {
|
if nil != arg["previousID"] {
|
||||||
previousID = arg["previousID"].(string)
|
previousID = arg["previousID"].(string)
|
||||||
if "" != previousID && util.InvalidIDPattern(parentID, ret) {
|
if "" != previousID && util.InvalidIDPattern(previousID, ret) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if nil != arg["nextID"] {
|
if nil != arg["nextID"] {
|
||||||
nextID = arg["nextID"].(string)
|
nextID = arg["nextID"].(string)
|
||||||
if "" != nextID && util.InvalidIDPattern(parentID, ret) {
|
if "" != nextID && util.InvalidIDPattern(nextID, ret) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue