Fix language dropdown sometimes not appearing in web UI (#19246)

When user has no locale preference saved (such as never changing it
from the default), the preferred posting language is nil, and
the dropdown is not visible
th-downstream
Eugen Rochko 2 years ago committed by GitHub
parent 798ed9890d
commit f6f08aa610

@ -282,7 +282,7 @@ class User < ApplicationRecord
end
def preferred_posting_language
valid_locale_cascade(settings.default_language, locale)
valid_locale_cascade(settings.default_language, locale, I18n.locale)
end
def setting_default_privacy

Loading…
Cancel
Save