Merge pull request #2476 from h3poteto/fix/misskey-filter
Through fetch filters when sns is misskey
This commit is contained in:
commit
d8ae174951
|
@ -186,10 +186,14 @@ const actions: ActionTree<TimelineSpaceState, RootState> = {
|
||||||
* fetchFilters
|
* fetchFilters
|
||||||
*/
|
*/
|
||||||
fetchFilters: async ({ commit, state, rootState }): Promise<Array<Entity.Filter>> => {
|
fetchFilters: async ({ commit, state, rootState }): Promise<Array<Entity.Filter>> => {
|
||||||
const client = generator(state.sns, state.account.baseURL, state.account.accessToken, rootState.App.userAgent)
|
try {
|
||||||
const res = await client.getFilters()
|
const client = generator(state.sns, state.account.baseURL, state.account.accessToken, rootState.App.userAgent)
|
||||||
commit(MUTATION_TYPES.UPDATE_FILTERS, res.data)
|
const res = await client.getFilters()
|
||||||
return res.data
|
commit(MUTATION_TYPES.UPDATE_FILTERS, res.data)
|
||||||
|
return res.data
|
||||||
|
} catch {
|
||||||
|
return []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* fetchInstance
|
* fetchInstance
|
||||||
|
|
Loading…
Reference in New Issue