0
0
Fork 0

Allow selecting default posting language instead of auto-detect (#7828)

* Allow selecting default posting language instead of auto-detect

* Enable default language setting in credentials API

* Fix form saving
This commit is contained in:
Eugen Rochko 2018-06-17 18:57:31 +02:00 committed by GitHub
parent bb21c6414d
commit a58ec29631
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 19 additions and 3 deletions

View file

@ -89,7 +89,7 @@ class User < ApplicationRecord
delegate :auto_play_gif, :default_sensitive, :unfollow_modal, :boost_modal, :delete_modal,
:reduce_motion, :system_font_ui, :noindex, :theme, :display_sensitive_media, :hide_network,
to: :settings, prefix: :setting, allow_nil: false
:default_language, to: :settings, prefix: :setting, allow_nil: false
attr_accessor :invite_code