fix old MR

This commit is contained in:
Henry Jameson 2018-12-13 20:25:46 +03:00
parent ac60550e07
commit f87001c22f
2 changed files with 4 additions and 3 deletions

View file

@ -60,9 +60,6 @@ const registerPushNotifications = store => {
if (isUserMutation && vapidPublicKey && permission) {
return store.dispatch('registerPushNotifications')
}
if (data['nsfwCensorImage']) {
store.dispatch('setOption', { name: 'nsfwCensorImage', value: data['nsfwCensorImage'] })
}
const user = state.users.currentUser
const isVapidMutation = mutation.type === 'setInstanceOption' && mutation.payload.name === 'vapidPublicKey'