diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-05-16 22:29:05 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-05-16 22:29:05 +0200 |
commit | 4415005de73579110a5bbc31bdd55dc89bf726e1 (patch) | |
tree | ac1b378fdfbe5bd301c60f18a565f303156878fc /app/models | |
parent | b91196f4b73fff91997b8077619ae25b6d04a59e (diff) | |
parent | d25015fc5b6c6b31dcf726b02dd0742475d9d9c8 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `app/javascript/mastodon/features/compose/components/compose_form.js`: Conflict caused because of minor code style change upstream, while glitch-soc has different code for handling variable maximum chars. Ported the change. - `app/serializers/initial_state_serializer.rb`: Conflict because glitch-soc had two extra attributes where upstream added one. Added upstream's attribute.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index b38de74b8..f7a35eeb5 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -53,6 +53,7 @@ class User < ApplicationRecord include Settings::Extend include UserRoles include Redisable + include LanguagesHelper # The home and list feeds will be stored in Redis for this amount # of time, and status fan-out to followers will include only people @@ -248,7 +249,7 @@ class User < ApplicationRecord end def preferred_posting_language - settings.default_language || locale + valid_locale_cascade(settings.default_language, locale) end def setting_default_privacy |