Fix for cast
This commit is contained in:
parent
f943507d0d
commit
dd4b03c97b
|
@ -284,7 +284,7 @@ func mapToItem(result map[string]interface{}) microsub.Item {
|
|||
if replyTo, ok := value.(string); ok {
|
||||
item.InReplyTo = append(item.InReplyTo, replyTo)
|
||||
} else if valueArray, ok := value.([]interface{}); ok {
|
||||
for _, v := range valueArray.([]interface{}) {
|
||||
for _, v := range valueArray {
|
||||
if replyTo, ok := v.(string); ok {
|
||||
item.InReplyTo = append(item.InReplyTo, replyTo)
|
||||
} else if cite, ok := v.(map[string]interface{}); ok {
|
||||
|
|
Loading…
Reference in New Issue
Block a user