Skip to content

Commit

Permalink
customizable FeedManager::MAX_ITEMS
Browse files Browse the repository at this point in the history
  • Loading branch information
shibafu528 committed Sep 21, 2023
1 parent 76352a1 commit 48485dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/feed_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class FeedManager
include Redisable

# Maximum number of items stored in a single feed
MAX_ITEMS = 800
MAX_ITEMS = ENV.fetch('FEED_MANAGER_MAX_ITEMS', 800).to_i

# Number of items in the feed since last reblog of status
# before the new reblog will be inserted. Must be <= MAX_ITEMS
Expand Down

0 comments on commit 48485dc

Please sign in to comment.