Fixed last occurance of `config.get('routeKeywords')

no issue

- 23f59c341c was not rebased against master
This commit is contained in:
kirrg001 2018-04-17 12:05:27 +02:00
parent 23f59c341c
commit d86441e9b2

View File

@ -5,7 +5,6 @@ const _ = require('lodash'),
moment = require('moment-timezone'),
jsonpath = require('jsonpath'),
debug = require('ghost-ignition').debug('services:url:generator'),
config = require('../../config'),
settingsCache = require('../settings/cache'),
/**
* @TODO: This is a fake version of the upcoming GQL tool.
@ -150,7 +149,7 @@ class UrlGenerator {
*/
_replacePermalink(url, resource) {
var output = url,
primaryTagFallback = config.get('routeKeywords').primaryTagFallback,
primaryTagFallback = 'all',
publishedAtMoment = moment.tz(resource.data.published_at || Date.now(), settingsCache.get('active_timezone')),
permalink = {
year: function () {