Move AccountSuggestions::Source subclasses default limit value to constant (#29282)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AccountSuggestions::GlobalSource < AccountSuggestions::Source
|
||||
def get(account, limit: 10)
|
||||
def get(account, limit: DEFAULT_LIMIT)
|
||||
FollowRecommendation.localized(content_locale).joins(:account).merge(base_account_scope(account)).order(rank: :desc).limit(limit).pluck(:account_id, :reason)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user