From 55e6c53e2a93c141cd9c4d5c4665916398d36ca3 Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Fri, 5 Oct 2018 09:48:26 +0200 Subject: [PATCH] Corrected misleading comment no issue - Changed not used to deprecated as author attribute is still being used --- core/server/models/relations/authors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/models/relations/authors.js b/core/server/models/relations/authors.js index 142392c3e9..54568f79d6 100644 --- a/core/server/models/relations/authors.js +++ b/core/server/models/relations/authors.js @@ -177,7 +177,7 @@ module.exports.extendModel = function extendModel(Post, Posts, ghostBookshelf) { delete attrs.author_id; } else { // CASE: we return `post.author=id` with or without requested columns. - // @NOTE: this serialization should be moved into api layer, it's not being moved as it's not used + // @NOTE: this serialization should be moved into api layer, it's not being moved as it's deprecated if (!options.columns || (options.columns && options.columns.indexOf('author') !== -1)) { attrs.author = attrs.author_id; delete attrs.author_id;