We were skipping context unmarshalling

This commit is contained in:
Marius Orcsik 2018-10-04 18:27:14 +02:00
parent d507b72a7a
commit bb530d67be
No known key found for this signature in database
GPG key ID: 8218F7122969D484

View file

@ -461,6 +461,7 @@ func (o *Object) UnmarshalJSON(data []byte) error {
o.Type = getAPType(data)
o.Name = getAPNaturalLanguageField(data, "name")
o.Content = getAPNaturalLanguageField(data, "content")
o.Context = getAPItem(data, "context")
u := getURIField(data, "url")
if len(u) > 0 {
o.URL = u