🐛 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"] {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue