From e1c52285622f86cdbd07acc17a7715d1d12d64d3 Mon Sep 17 00:00:00 2001 From: CaramelKat <32065563+caramelkat@users.noreply.github.com> Date: Thu, 21 May 2020 01:24:03 -0500 Subject: [PATCH] fixed image loading and posting from the correct community in portal --- src/html/portal.html | 10 +++++----- src/services/web-api/routes/communities.js | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/html/portal.html b/src/html/portal.html index e86c3c2..9615f80 100644 --- a/src/html/portal.html +++ b/src/html/portal.html @@ -12441,11 +12441,11 @@
-
+
- - + + More Info @@ -12521,7 +12521,7 @@
- + @@ -12675,7 +12675,6 @@ document.getElementById("Posts").innerHTML = this.responseText; var posts = JSON.parse(this.responseText); var postBody = ''; - console.log('working on it ' + str); for(var i = 0; i < posts.length; i++) { postBody += '
\n' + @@ -12726,6 +12725,7 @@ if (this.readyState === 4 && this.status === 200) { var response = JSON.parse(this.responseText); console.log(response); + document.getElementById("olive_title_id").value = response.title_id; document.getElementById("communityIcon").src = response.browser_icon; document.getElementById("communityHeader").src = response.WiiU_browser_header; document.getElementById("page-title").innerHTML = response.name; diff --git a/src/services/web-api/routes/communities.js b/src/services/web-api/routes/communities.js index 0f7f87b..19bebe9 100644 --- a/src/services/web-api/routes/communities.js +++ b/src/services/web-api/routes/communities.js @@ -38,6 +38,7 @@ router.get('/images', function (req, res) { name: community.name, description: community.description, platform_id: community.platform_id, + title_id: community.title_id[0], CTR_browser_header: community.CTR_browser_header, WiiU_browser_header: community.WiiU_browser_header, browser_icon: community.browser_icon