Remove photo change
- Should be an array
This commit is contained in:
parent
4e34003af6
commit
a654662e93
|
@ -67,13 +67,7 @@ func simplify(item map[string][]interface{}) map[string]interface{} {
|
|||
feedItem[k] = content
|
||||
}
|
||||
} else if k == "photo" {
|
||||
if len(v) == 1 {
|
||||
if value, ok := v[0].(string); ok {
|
||||
feedItem[k] = value
|
||||
}
|
||||
} else {
|
||||
feedItem[k] = v
|
||||
}
|
||||
feedItem[k] = v
|
||||
} else if k == "video" {
|
||||
feedItem[k] = v
|
||||
} else if k == "featured" {
|
||||
|
|
Loading…
Reference in New Issue
Block a user