Add fallback for AddTo method

This commit is contained in:
Marius Orcsik 2020-06-10 21:49:30 +02:00
parent 5124af1873
commit 5bd32877d1
No known key found for this signature in database
GPG key ID: 77618B618F79EB72

View file

@ -230,6 +230,8 @@ func (t CollectionType) AddTo(i pub.Item) (pub.IRI, bool) {
}
return nil
})
} else {
iri = IRIf(i.GetLink(), t)
}
return iri, status
}