mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
Fixed internal tags showing up in the search results
refs https://github.com/TryGhost/Team/issues/1665 - By default we don't want to show internal tags in search results
This commit is contained in:
parent
233a1c2e4c
commit
13d4749949
@ -87,7 +87,8 @@ export default class SearchIndex {
|
||||
let tags = await this.api.tags.browse({
|
||||
limit: '10000',
|
||||
fields: 'id,slug,name,url',
|
||||
order: 'updated_at DESC'
|
||||
order: 'updated_at DESC',
|
||||
filter: 'visibility:public'
|
||||
});
|
||||
|
||||
if (tags || tags.length > 0) {
|
||||
|
@ -16,7 +16,7 @@ describe('search index', function () {
|
||||
.reply(200, {
|
||||
authors: []
|
||||
})
|
||||
.get('/tags/?key=69010382388f9de5869ad6e558&&limit=10000&fields=id,slug,name,url&order=updated_at%20DESC')
|
||||
.get('/tags/?key=69010382388f9de5869ad6e558&&limit=10000&fields=id,slug,name,url&order=updated_at%20DESC&filter=visibility%3Apublic')
|
||||
.reply(200, {
|
||||
tags: []
|
||||
});
|
||||
@ -63,7 +63,7 @@ describe('search index', function () {
|
||||
url: 'http://localhost/ghost/authors/bob/'
|
||||
}]
|
||||
})
|
||||
.get('/tags/?key=69010382388f9de5869ad6e558&&limit=10000&fields=id,slug,name,url&order=updated_at%20DESC')
|
||||
.get('/tags/?key=69010382388f9de5869ad6e558&&limit=10000&fields=id,slug,name,url&order=updated_at%20DESC&filter=visibility%3Apublic')
|
||||
.reply(200, {
|
||||
tags: [{
|
||||
id: 'uniq_tag',
|
||||
|
Loading…
Reference in New Issue
Block a user