[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
|
||||
|
||||
Reference in New Issue
Block a user