mirror of https://github.com/tootsuite/mastodon
Update app/services/activitypub/fetch_all_replies_service.rb
Co-authored-by: Claire <claire.github-309c@sitedethib.com>pull/32615/head
parent
59b7ed0945
commit
d6e7e88afb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue