check for owner before attributedTo

This commit is contained in:
Ted Unangst 2023-06-10 23:51:31 -04:00
parent 2bea5e1be9
commit 846e9820e9
1 changed files with 4 additions and 1 deletions

View File

@ -1737,7 +1737,10 @@ func somethingabout(obj junk.Junk) (*SomeThing, error) {
if info.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 == "" {
info.Owner = info.XID
}