fix old MR
This commit is contained in:
parent
ac60550e07
commit
f87001c22f
2 changed files with 4 additions and 3 deletions
|
@ -28,6 +28,10 @@ const afterStoreSetup = ({ store, i18n }) => {
|
||||||
store.dispatch('setInstanceOption', { name: 'textlimit', value: parseInt(textlimit) })
|
store.dispatch('setInstanceOption', { name: 'textlimit', value: parseInt(textlimit) })
|
||||||
store.dispatch('setInstanceOption', { name: 'server', value: server })
|
store.dispatch('setInstanceOption', { name: 'server', value: server })
|
||||||
|
|
||||||
|
if (data.nsfwCensorImage) {
|
||||||
|
store.dispatch('setInstanceOption', { name: 'nsfwCensorImage', value: data.nsfwCensorImage })
|
||||||
|
}
|
||||||
|
|
||||||
if (vapidPublicKey) {
|
if (vapidPublicKey) {
|
||||||
store.dispatch('setInstanceOption', { name: 'vapidPublicKey', value: vapidPublicKey })
|
store.dispatch('setInstanceOption', { name: 'vapidPublicKey', value: vapidPublicKey })
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,9 +60,6 @@ const registerPushNotifications = store => {
|
||||||
if (isUserMutation && vapidPublicKey && permission) {
|
if (isUserMutation && vapidPublicKey && permission) {
|
||||||
return store.dispatch('registerPushNotifications')
|
return store.dispatch('registerPushNotifications')
|
||||||
}
|
}
|
||||||
if (data['nsfwCensorImage']) {
|
|
||||||
store.dispatch('setOption', { name: 'nsfwCensorImage', value: data['nsfwCensorImage'] })
|
|
||||||
}
|
|
||||||
|
|
||||||
const user = state.users.currentUser
|
const user = state.users.currentUser
|
||||||
const isVapidMutation = mutation.type === 'setInstanceOption' && mutation.payload.name === 'vapidPublicKey'
|
const isVapidMutation = mutation.type === 'setInstanceOption' && mutation.payload.name === 'vapidPublicKey'
|
||||||
|
|
Loading…
Reference in a new issue