Skip to content

Commit

Permalink
rm zombie code in fetch_replies_service
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Sep 30, 2024
1 parent b49a6cf commit 9f902f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/services/activitypub/fetch_replies_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ def call(parent_status, collection_or_uri, allow_synchronous_requests: true, req
@items = collection_items(collection_or_uri)
return if @items.nil?

FetchReplyWorker.push_bulk(filtered_replies) { |reply_uri| [reply_uri, { 'request_id' => request_id, 'all_replies' => @all_replies }] }
# Store last fetched all to debounce
@status.touch(:fetched_replies_at)
FetchReplyWorker.push_bulk(filtered_replies) { |reply_uri| [reply_uri, { 'request_id' => request_id }] }

@items
end
Expand Down

0 comments on commit 9f902f3

Please sign in to comment.