Update app/services/activitypub/fetch_all_replies_service.rb

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
pull/32615/head
Jonny Saunders 2024-10-28 09:36:04 -07:00
parent 59b7ed0945
commit d6e7e88afb
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class ActivityPub::FetchAllRepliesService < ActivityPub::FetchRepliesService
Status.where(uri: uris).should_fetch_replies.touch_all(:fetched_replies_at) Status.where(uri: uris).should_fetch_replies.touch_all(:fetched_replies_at)
# Reject all statuses that we already have in the db # Reject all statuses that we already have in the db
uris = uris.reject { |uri| dont_update.include?(uri) }.take(MAX_REPLIES) uris = (uris - dont_update).take(MAX_REPLIES)
Rails.logger.debug { "FetchAllRepliesService - #{@collection_or_uri}: Fetching filtered statuses: #{uris}" } Rails.logger.debug { "FetchAllRepliesService - #{@collection_or_uri}: Fetching filtered statuses: #{uris}" }
uris uris