63094d3cc7
closes #6165 - internal tags has been in labs for a couple of months, we've fixed some bugs & are ready to ship - removes all code that tests for the labs flag - also refactors the various usage of the visibility filter into a single util - all the tests still pass!!! - this marks #6165 as closed because I think the remaining UI tasks will be handled as part of a larger piece of work
13 lines
357 B
JavaScript
13 lines
357 B
JavaScript
var visibilityFilter = require('../../utils/visibility-filter');
|
|
|
|
function getKeywords(data) {
|
|
if (data.post && data.post.tags && data.post.tags.length > 0) {
|
|
return visibilityFilter(data.post.tags, ['public'], false, function processItem(item) {
|
|
return item.name;
|
|
});
|
|
}
|
|
return null;
|
|
}
|
|
|
|
module.exports = getKeywords;
|