mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -325,6 +325,11 @@ func NetAssets2LocalAssets(rootID string) (err error) {
|
||||
request := browserClient.R()
|
||||
request.SetRetryCount(1).SetRetryFixedInterval(3 * time.Second)
|
||||
resp, reqErr := request.Get(u)
|
||||
if strings.Contains(strings.ToLower(resp.GetContentType()), "text/html") {
|
||||
// 忽略超链接网页 `Convert network assets to local` no longer process webpage https://github.com/siyuan-note/siyuan/issues/9965
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
if nil != reqErr {
|
||||
logging.LogErrorf("download network asset [%s] failed: %s", u, reqErr)
|
||||
return ast.WalkContinue
|
||||
|
||||
@@ -878,6 +878,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
|
||||
// operation.IsTwoWay 是否双向关联
|
||||
// operation.BackRelationKeyID 双向关联的目标关联列 ID
|
||||
// operation.Name 双向关联的目标关联列名称
|
||||
// operation.Format 源 av 关联列名称
|
||||
|
||||
srcAv, err := av.ParseAttributeView(operation.AvID)
|
||||
if nil != err {
|
||||
@@ -934,6 +935,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
|
||||
srcRel.BackKeyID = ""
|
||||
}
|
||||
keyValues.Key.Relation = srcRel
|
||||
keyValues.Key.Name = operation.Format
|
||||
|
||||
break
|
||||
}
|
||||
@@ -950,9 +952,9 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
|
||||
if operation.IsTwoWay {
|
||||
name := strings.TrimSpace(operation.Name)
|
||||
if "" == name {
|
||||
name = srcAv.Name
|
||||
name = srcAv.Name + " " + operation.Format
|
||||
}
|
||||
backRelKey.Name = name
|
||||
backRelKey.Name = strings.TrimSpace(name)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -960,7 +962,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
|
||||
if operation.IsTwoWay {
|
||||
name := strings.TrimSpace(operation.Name)
|
||||
if "" == name {
|
||||
name = srcAv.Name
|
||||
name = srcAv.Name + " " + operation.Format
|
||||
}
|
||||
|
||||
destAv.KeyValues = append(destAv.KeyValues, &av.KeyValues{
|
||||
|
||||
Reference in New Issue
Block a user