allow attributedto to be object
This commit is contained in:
parent
ad4a21d642
commit
a53f9b7917
|
@ -446,6 +446,13 @@ func extractattrto(obj junk.Junk) string {
|
||||||
if who != "" {
|
if who != "" {
|
||||||
return who
|
return who
|
||||||
}
|
}
|
||||||
|
o, ok := obj.GetMap("attributedTo")
|
||||||
|
if ok {
|
||||||
|
id, ok := o.GetString("id")
|
||||||
|
if ok {
|
||||||
|
return id
|
||||||
|
}
|
||||||
|
}
|
||||||
arr, _ := obj.GetArray("attributedTo")
|
arr, _ := obj.GetArray("attributedTo")
|
||||||
for _, a := range arr {
|
for _, a := range arr {
|
||||||
o, ok := a.(junk.Junk)
|
o, ok := a.(junk.Junk)
|
||||||
|
|
Loading…
Reference in New Issue