mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
8a6922b56f
commit
b14f057a76
3 changed files with 35 additions and 14 deletions
|
|
@ -16,7 +16,7 @@ var (
|
|||
attributeViewRelationsLock = sync.Mutex{}
|
||||
)
|
||||
|
||||
func GetSrcAvIDs(destAvID string) []string {
|
||||
func GetSrcAvIDs(destAvID string, excludeSelfAv bool) []string {
|
||||
attributeViewRelationsLock.Lock()
|
||||
defer attributeViewRelationsLock.Unlock()
|
||||
|
||||
|
|
@ -42,8 +42,9 @@ func GetSrcAvIDs(destAvID string) []string {
|
|||
return nil
|
||||
}
|
||||
|
||||
// 排除自己
|
||||
srcAvIDs = gulu.Str.RemoveElem(srcAvIDs, destAvID)
|
||||
if excludeSelfAv {
|
||||
srcAvIDs = gulu.Str.RemoveElem(srcAvIDs, destAvID)
|
||||
}
|
||||
return srcAvIDs
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue