mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 15:23:05 +02:00
Nested objects aren't REAL!
This commit is contained in:
parent
832e16ef86
commit
794751abfa
1 changed files with 4 additions and 2 deletions
|
@ -203,10 +203,12 @@ function onMessage(message) {
|
||||||
path: response.user_story.path,
|
path: response.user_story.path,
|
||||||
place_name: response.user_story.place_name,
|
place_name: response.user_story.place_name,
|
||||||
thumbnail_url: response.user_story.thumbnail_url,
|
thumbnail_url: response.user_story.thumbnail_url,
|
||||||
details: {
|
// For historical reasons, the server doesn't take nested JSON objects.
|
||||||
|
// Thus, I'm required to STRINGIFY what should be a nested object.
|
||||||
|
details: JSON.stringify({
|
||||||
shareable_url: response.user_story.details.shareable_url,
|
shareable_url: response.user_story.details.shareable_url,
|
||||||
image_url: response.user_story.details.image_url
|
image_url: response.user_story.details.image_url
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
request({
|
request({
|
||||||
|
|
Loading…
Reference in a new issue