2
0

Fix async refresh never being finished when status cannot be fetched (#35500)

This commit is contained in:
Eugen Rochko
2025-07-29 11:23:32 +02:00
committed by GitHub
parent d121007927
commit 8cf7a77808
8 changed files with 26 additions and 30 deletions

View File

@@ -33,7 +33,7 @@ module Status::FetchRepliesConcern
def should_fetch_replies?
# we aren't brand new, and we haven't fetched replies since the debounce window
!local? && created_at <= FETCH_REPLIES_INITIAL_WAIT_MINUTES.ago && (
!local? && distributable? && created_at <= FETCH_REPLIES_INITIAL_WAIT_MINUTES.ago && (
fetched_replies_at.nil? || fetched_replies_at <= FETCH_REPLIES_COOLDOWN_MINUTES.ago
)
end