sneakers-the-rat 2024-09-18 21:49:57 -07:00 committed by Jonny Saunders
parent 75878c826d
commit 8e6e3346e1
2 changed files with 1 additions and 3 deletions

View File

@ -25,7 +25,7 @@ class ActivityPub::FetchRepliesService < BaseService
FetchReplyWorker.push_bulk(filtered_replies) { |reply_uri| [reply_uri, { 'request_id' => request_id, 'all_replies' => @all_replies }] }
# Store last fetched all to debounce
@status.update(fetched_replies_at: Time.now.utc) if fetch_all_replies?
@status.touch(:fetched_replies_at)
@items
end

View File

@ -1,8 +1,6 @@
# frozen_string_literal: true
class AddFetchedRepliesAtToStatus < ActiveRecord::Migration[7.1]
disable_ddl_transaction!
def change
add_column :statuses, :fetched_replies_at, :datetime, null: true
end