Better reverse link resoving

This commit is contained in:
Simon Martens
2025-01-01 23:49:09 +01:00
parent 7539a2dca7
commit 3f294680c0
13 changed files with 259 additions and 99 deletions

View File

@@ -55,10 +55,9 @@ type Identifier struct {
}
func (i Identifier) Keys() []string {
if len(i.keys) > 0 {
return i.keys
if len(i.keys) == 0 {
i.keys = append(i.keys, i.ID)
}
i.keys = []string{i.ID}
return i.keys
}