From afb3177e5eecdea324289360a7966daa007d3611 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Mon, 9 Mar 2020 08:38:01 +0000 Subject: [PATCH] Added site URL to Update Check body no issue --- core/server/update-check.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/server/update-check.js b/core/server/update-check.js index cc4c858c7a..4407c0426e 100644 --- a/core/server/update-check.js +++ b/core/server/update-check.js @@ -111,9 +111,11 @@ function updateCheckData() { posts = descriptors.posts.value(), users = descriptors.users.value(), npm = descriptors.npm.value(), - blogUrl = url.parse(urlUtils.urlFor('home', true)), - blogId = blogUrl.hostname + blogUrl.pathname.replace(/\//, '') + hash.value; + blogUrl = urlUtils.urlFor('home', true), + parsedBlogUrl = url.parse(blogUrl), + blogId = parsedBlogUrl.hostname + parsedBlogUrl.pathname.replace(/\//, '') + hash.value; + data.url = blogUrl; data.blog_id = crypto.createHash('md5').update(blogId).digest('hex'); data.theme = theme ? theme.value : ''; data.post_count = posts && posts.meta && posts.meta.pagination ? posts.meta.pagination.total : 0;