mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-28 18:40:47 +00:00
Fix "new replies available" miscounting previously known replies (#35654)
This commit is contained in:
parent
80aadc55df
commit
c8ec649830
|
|
@ -10,6 +10,6 @@ class FetchReplyWorker
|
||||||
batch = WorkerBatch.new(options.delete('batch_id')) if options['batch_id']
|
batch = WorkerBatch.new(options.delete('batch_id')) if options['batch_id']
|
||||||
result = FetchRemoteStatusService.new.call(child_url, **options.symbolize_keys)
|
result = FetchRemoteStatusService.new.call(child_url, **options.symbolize_keys)
|
||||||
ensure
|
ensure
|
||||||
batch&.remove_job(jid, increment: result.present?)
|
batch&.remove_job(jid, increment: result&.previously_new_record?)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user