From a180d4e103da3989426fb5404bf95454641e16e9 Mon Sep 17 00:00:00 2001 From: kirrg001 Date: Wed, 27 Feb 2019 18:08:36 +0100 Subject: [PATCH] Updated TODO's no issue --- core/server/apps/amp/lib/router.js | 2 +- core/server/helpers/get.js | 2 +- core/server/helpers/prev_next.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/server/apps/amp/lib/router.js b/core/server/apps/amp/lib/router.js index b42803240b..535ba99b70 100644 --- a/core/server/apps/amp/lib/router.js +++ b/core/server/apps/amp/lib/router.js @@ -64,7 +64,7 @@ function getPostData(req, res, next) { } // @NOTE: amp is not supported for static pages - // @TODO: AMP should make an HTTP request to the Content API {version} + // @TODO: https://github.com/TryGhost/Ghost/issues/10548 helpers.entryLookup(urlWithoutSubdirectoryWithoutAmp, {permalinks, query: {controller: 'postsPublic', resource: 'posts'}}, res.locals) .then((result) => { if (result && result.entry) { diff --git a/core/server/helpers/get.js b/core/server/helpers/get.js index 3a785f7ec9..34d23b734b 100644 --- a/core/server/helpers/get.js +++ b/core/server/helpers/get.js @@ -163,7 +163,7 @@ get = function get(resource, options) { // Parse the options we're going to pass to the API apiOptions = parseOptions(ghostGlobals, this, apiOptions); - // @TODO: get helper should make an HTTP request to the Content API {version} + // @TODO: https://github.com/TryGhost/Ghost/issues/10548 return api[apiVersion][controller][action](apiOptions).then(function success(result) { var blockParams; diff --git a/core/server/helpers/prev_next.js b/core/server/helpers/prev_next.js index 8a6685e18c..c9e09c67ad 100644 --- a/core/server/helpers/prev_next.js +++ b/core/server/helpers/prev_next.js @@ -53,7 +53,7 @@ fetch = function fetch(options, data) { const apiOptions = buildApiOptions(options, this); const apiVersion = data.root._locals.apiVersion; - // @TODO: prev_next helper should make an HTTP request to the Content API {version} + // @TODO: https://github.com/TryGhost/Ghost/issues/10548 const controller = api[apiVersion].postsPublic || api[apiVersion].posts; return controller