Fix /api/v1/statuses/:id/context sometimes returing Mastodon-Async-Refresh without result_count (#36779)
This commit is contained in:
parent
fbe05d42fb
commit
ea663cf7c7
2 changed files with 16 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ class Api::V1::StatusesController < Api::BaseController
|
|||
if async_refresh.running?
|
||||
add_async_refresh_header(async_refresh)
|
||||
elsif !current_account.nil? && @status.should_fetch_replies?
|
||||
add_async_refresh_header(AsyncRefresh.create(refresh_key))
|
||||
add_async_refresh_header(AsyncRefresh.create(refresh_key, count_results: true))
|
||||
|
||||
WorkerBatch.new.within do |batch|
|
||||
batch.connect(refresh_key, threshold: 1.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue