mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
5f5f0021db
no issue - support ends today - see https://github.com/nodejs/Release - removed `use strict`
13 lines
352 B
JavaScript
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;
|