2
0

Remove environment variables to config Fetch All Replies behaviour (#36627)

This commit is contained in:
Renaud Chaput
2025-10-28 16:58:18 +01:00
committed by GitHub
parent e1bd9b944a
commit 795aaa14bf
4 changed files with 10 additions and 25 deletions

View File

@@ -3,8 +3,8 @@
class ActivityPub::FetchAllRepliesService < ActivityPub::FetchRepliesService
include JsonLdHelper
# Limit of replies to fetch per status
MAX_REPLIES = (ENV['FETCH_REPLIES_MAX_SINGLE'] || 500).to_i
# Max number of replies to fetch - for a single post
MAX_REPLIES = 500
def call(status_uri, collection_or_uri, max_pages: 1, batch_id: nil, request_id: nil)
@status_uri = status_uri