mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-18 08:13:17 +00:00
Remove environment variables to config Fetch All Replies behaviour (#36627)
This commit is contained in:
parent
e1bd9b944a
commit
795aaa14bf
4 changed files with 10 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue