Compare commits
No commits in common. "38c46ec73b0faf5d316db1aa970da9f33c6c5a6a" and "b58bc6254a9b02a717fce8722f22a5c04ce8e461" have entirely different histories.
38c46ec73b
...
b58bc6254a
|
|
@ -120,13 +120,9 @@
|
|||
},
|
||||
showFeed(feed) {
|
||||
feed.loading = true
|
||||
let url = this.$store.state.microsubEndpoint
|
||||
let formData = new URLSearchParams();
|
||||
formData.set('action', 'preview')
|
||||
formData.set('url', feed.url)
|
||||
let url = this.$store.state.microsubEndpoint + '?action=preview&url=' + encodeURIComponent(feed.url)
|
||||
return fetch(url, {
|
||||
method: 'POST',
|
||||
body: formData,
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Authorization': 'Bearer ' + this.$store.state.access_token
|
||||
}
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@ export default new Vuex.Store({
|
|||
},
|
||||
startQuery({state, commit}, query) {
|
||||
let channel = 'global'
|
||||
if (state.channel !== null && state.channel.uid !== null && state.channel.uid !== 'home') {
|
||||
if (state.channel.uid !== null) {
|
||||
channel = state.channel.uid
|
||||
}
|
||||
return fetch(this.state.microsubEndpoint + '?action=search&channel='+channel+'&query='+query, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user