Allow global search on the home channel
This commit is contained in:
parent
4230782091
commit
38c46ec73b
|
@ -262,7 +262,7 @@ export default new Vuex.Store({
|
|||
},
|
||||
startQuery({state, commit}, query) {
|
||||
let channel = 'global'
|
||||
if (state.channel.uid !== null) {
|
||||
if (state.channel !== null && state.channel.uid !== null && state.channel.uid !== 'home') {
|
||||
channel = state.channel.uid
|
||||
}
|
||||
return fetch(this.state.microsubEndpoint + '?action=search&channel='+channel+'&query='+query, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user