mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-12 04:31:11 +00:00
bump limits
This commit is contained in:
parent
849c0500b0
commit
f9600fcbd3
|
@ -120,7 +120,7 @@ FETCH_REPLIES_MAX_PAGES=500
|
|||
ACCOUNT_BACKFILL_ENABLED=true
|
||||
|
||||
# Max statuses to fetch when backfilling a new account
|
||||
ACCOUNT_BACKFILL_MAX_STATUSES=500
|
||||
ACCOUNT_BACKFILL_MAX_STATUSES=1000
|
||||
|
||||
# Max number of replies Collection pages to fetch
|
||||
ACCOUNT_BACKFILL_MAX_PAGES=100
|
||||
ACCOUNT_BACKFILL_MAX_PAGES=200
|
||||
|
|
|
@ -4,8 +4,8 @@ class ActivityPub::AccountBackfillService < BaseService
|
|||
include JsonLdHelper
|
||||
|
||||
ENABLED = ENV['ACCOUNT_BACKFILL_ENABLED'].nil? || ENV['ACCOUNT_BACKFILL_ENABLED'] == 'true'
|
||||
MAX_STATUSES = (ENV['ACCOUNT_BACKFILL_MAX_STATUSES'] || 500).to_i
|
||||
MAX_PAGES = (ENV['ACCOUNT_BACKFILL_MAX_PAGES'] || 100).to_i
|
||||
MAX_STATUSES = (ENV['ACCOUNT_BACKFILL_MAX_STATUSES'] || 1000).to_i
|
||||
MAX_PAGES = (ENV['ACCOUNT_BACKFILL_MAX_PAGES'] || 200).to_i
|
||||
|
||||
def call(account, on_behalf_of: nil, request_id: nil)
|
||||
return unless ENABLED
|
||||
|
|
Loading…
Reference in New Issue
Block a user