mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-27 01:52:55 -05:00
parent
422e4d897b
commit
7966d3a872
@ -11,6 +11,7 @@ class Settings::PreferencesController < ApplicationController
|
|||||||
user_settings.update(user_settings_params.to_h)
|
user_settings.update(user_settings_params.to_h)
|
||||||
|
|
||||||
if current_user.update(user_params)
|
if current_user.update(user_params)
|
||||||
|
I18n.locale = current_user.locale
|
||||||
redirect_to settings_preferences_path, notice: I18n.t('generic.changes_saved_msg')
|
redirect_to settings_preferences_path, notice: I18n.t('generic.changes_saved_msg')
|
||||||
else
|
else
|
||||||
render :show
|
render :show
|
||||||
|
Loading…
x
Reference in New Issue
Block a user