Allow global search on the home channel

This commit is contained in:
Peter Stuifzand 2021-10-20 22:18:12 +02:00
parent 4230782091
commit 38c46ec73b

View File

@ -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, {