mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 00:55:32 +00:00
Better reverse link resoving
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user