check for owner before attributedTo
This commit is contained in:
parent
2bea5e1be9
commit
846e9820e9
|
@ -1737,7 +1737,10 @@ func somethingabout(obj junk.Junk) (*SomeThing, error) {
|
||||||
if info.Name == "" {
|
if info.Name == "" {
|
||||||
info.Name, _ = obj.GetString("name")
|
info.Name, _ = obj.GetString("name")
|
||||||
}
|
}
|
||||||
info.Owner, _ = obj.GetString("attributedTo")
|
info.Owner, _ = obj.GetString("owner")
|
||||||
|
if info.Owner == "" {
|
||||||
|
info.Owner, _ = obj.GetString("attributedTo")
|
||||||
|
}
|
||||||
if info.Owner == "" {
|
if info.Owner == "" {
|
||||||
info.Owner = info.XID
|
info.Owner = info.XID
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue