Browse Source

Fix error in suggestions API due to typo (#17486)

Regression from #17479
closed-social-glitch-2
Eugen Rochko 2 years ago
committed by GitHub
parent
commit
2adcad04ff
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/account_suggestions/global_source.rb

+ 1
- 1
app/models/account_suggestions/global_source.rb View File

@ -6,7 +6,7 @@ class AccountSuggestions::GlobalSource < AccountSuggestions::Source
end
def get(account, skip_account_ids: [], limit: 40)
account_ids = account_ids_for_locale(I18n.locale.to_str.split(/[_-]/).first) - [account.id] - skip_account_ids
account_ids = account_ids_for_locale(I18n.locale.to_s.split(/[_-]/).first) - [account.id] - skip_account_ids
as_ordered_suggestions(
scope(account).where(id: account_ids),

Loading…
Cancel
Save