Merge remote-tracking branch 'parent/main' into upstream-20240409
This commit is contained in:
commit
52c5784910
34 changed files with 186 additions and 159 deletions
|
@ -18,7 +18,7 @@ class FeedManager
|
|||
# @yield [Account]
|
||||
# @return [void]
|
||||
def with_active_accounts(&block)
|
||||
Account.joins(:user).where('users.current_sign_in_at > ?', User::ACTIVE_DURATION.ago).find_each(&block)
|
||||
Account.joins(:user).merge(User.signed_in_recently).find_each(&block)
|
||||
end
|
||||
|
||||
# Redis key of a feed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue