chore: tweak memo property

This commit is contained in:
Steven
2024-05-27 19:43:57 +08:00
parent 2b4c2b23b2
commit a423dac12c
6 changed files with 397 additions and 370 deletions

View File

@ -811,6 +811,7 @@ func convertMemoPropertyFromStore(property *storepb.MemoPayload_Property) *v1pb.
Tags: property.Tags,
HasLink: property.HasLink,
HasTaskList: property.HasTaskList,
HasCode: property.HasCode,
}
}
@ -1081,6 +1082,8 @@ func getMemoPropertyFromContent(content string) (*storepb.MemoPayload_Property,
property.HasLink = true
case *ast.TaskList:
property.HasTaskList = true
case *ast.Code, *ast.CodeBlock:
property.HasCode = true
}
})
return property, nil