From 794751abfaa6a158fac25ba39ae934141f0e91e4 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Thu, 27 Apr 2017 11:28:18 -0700 Subject: [PATCH] Nested objects aren't REAL! --- scripts/system/snapshot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/system/snapshot.js b/scripts/system/snapshot.js index ecb7aba982..6d0c4bbf58 100644 --- a/scripts/system/snapshot.js +++ b/scripts/system/snapshot.js @@ -203,10 +203,12 @@ function onMessage(message) { path: response.user_story.path, place_name: response.user_story.place_name, 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, image_url: response.user_story.details.image_url - } + }) } } request({