diff --git a/app/services/activitypub/fetch_replies_service.rb b/app/services/activitypub/fetch_replies_service.rb index 95919191f75b17..04b035a718a3fc 100644 --- a/app/services/activitypub/fetch_replies_service.rb +++ b/app/services/activitypub/fetch_replies_service.rb @@ -25,7 +25,7 @@ def call(parent_status, collection_or_uri, allow_synchronous_requests: true, req 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 diff --git a/db/migrate/20240918233930_add_fetched_replies_at_to_status.rb b/db/migrate/20240918233930_add_fetched_replies_at_to_status.rb index c42eff6aeb38fc..229e43d978c493 100644 --- a/db/migrate/20240918233930_add_fetched_replies_at_to_status.rb +++ b/db/migrate/20240918233930_add_fetched_replies_at_to_status.rb @@ -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