|
|
@ -53,6 +53,7 @@ class User < ApplicationRecord
|
|
|
|
include Settings::Extend
|
|
|
|
include Settings::Extend
|
|
|
|
include UserRoles
|
|
|
|
include UserRoles
|
|
|
|
include Redisable
|
|
|
|
include Redisable
|
|
|
|
|
|
|
|
include LanguagesHelper
|
|
|
|
|
|
|
|
|
|
|
|
# The home and list feeds will be stored in Redis for this amount
|
|
|
|
# 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
|
|
|
|
# of time, and status fan-out to followers will include only people
|
|
|
@ -248,7 +249,7 @@ class User < ApplicationRecord
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def preferred_posting_language
|
|
|
|
def preferred_posting_language
|
|
|
|
settings.default_language || locale
|
|
|
|
valid_locale_cascade(settings.default_language, locale)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def setting_default_privacy
|
|
|
|
def setting_default_privacy
|
|
|
|