[fixes] Based on APM findings
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Api::V1::AccountByUsernameController < EmptyController
|
||||
class Api::V1::AccountByUsernameController < API::BaseController
|
||||
before_action :set_account
|
||||
before_action :check_account_suspension
|
||||
before_action :check_account_local
|
||||
|
||||
@@ -62,6 +62,7 @@ class Api::V1::Timelines::HomeController < Api::BaseController
|
||||
end
|
||||
|
||||
def regeneration_in_progress?
|
||||
Redis.current.exists?("account:#{current_account.id}:regeneration")
|
||||
false
|
||||
# Redis.current.exists?("account:#{current_account.id}:regeneration")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,7 +9,7 @@ class Settings::PreferencesController < Settings::BaseController
|
||||
|
||||
def update
|
||||
user_settings.update(user_settings_params.to_h)
|
||||
current_user.force_regeneration!
|
||||
# current_user.force_regeneration!
|
||||
|
||||
if current_user.update(user_params)
|
||||
I18n.locale = current_user.locale
|
||||
|
||||
Reference in New Issue
Block a user