mirror of https://github.com/tootsuite/mastodon
accept review comments https://github.com/NeuromatchAcademy/mastodon/pull/44\#discussion_r1766143286 and https://github.com/NeuromatchAcademy/mastodon/pull/44\#discussion_r1766148179
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
parent
75878c826d
commit
8e6e3346e1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue