mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-24 21:45:06 +01:00
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
This commit is contained in:
parent
55a2e9b5be
commit
0d0f3c15d3
@ -282,7 +282,7 @@ class User < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def preferred_posting_language
|
def preferred_posting_language
|
||||||
valid_locale_cascade(settings.default_language, locale)
|
valid_locale_cascade(settings.default_language, locale, I18n.locale)
|
||||||
end
|
end
|
||||||
|
|
||||||
def setting_default_privacy
|
def setting_default_privacy
|
||||||
|
Loading…
Reference in New Issue
Block a user