mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 Fix arg check https://github.com/Yimien/plugin-memos-sync/issues/16
This commit is contained in:
@@ -418,13 +418,13 @@ func insertBlock(c *gin.Context) {
|
||||
}
|
||||
if nil != arg["previousID"] {
|
||||
previousID = arg["previousID"].(string)
|
||||
if "" != previousID && util.InvalidIDPattern(parentID, ret) {
|
||||
if "" != previousID && util.InvalidIDPattern(previousID, ret) {
|
||||
return
|
||||
}
|
||||
}
|
||||
if nil != arg["nextID"] {
|
||||
nextID = arg["nextID"].(string)
|
||||
if "" != nextID && util.InvalidIDPattern(parentID, ret) {
|
||||
if "" != nextID && util.InvalidIDPattern(nextID, ret) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user