Ghost/core/server/data/meta/keywords.js
kirrg001 5f5f0021db 🔥 Drop Node v4 Support
no issue

- support ends today
- see https://github.com/nodejs/Release
- removed `use strict`
2018-05-01 14:06:18 +02:00

13 lines
352 B
JavaScript

const models = require('../../models');
function getKeywords(data) {
if (data.post && data.post.tags && data.post.tags.length > 0) {
return models.Base.Model.filterByVisibility(data.post.tags, ['public'], false, function processItem(item) {
return item.name;
});
}
return null;
}
module.exports = getKeywords;