Top posts test
This commit is contained in:
parent
725811a2e3
commit
16a2f4fb9e
8 changed files with 90 additions and 2 deletions
|
@ -21,3 +21,13 @@ class PrecomputeFeedService < BaseService
|
|||
@skip_filled_timelines && FeedManager.instance.timeline_size(type, id) * 2 > FeedManager::MAX_ITEMS
|
||||
end
|
||||
end
|
||||
|
||||
# app/services/precompute_feed_service.rb
|
||||
def call(user)
|
||||
case user.feed_algorithm
|
||||
when 'local_top'
|
||||
LocalTopPostsService.new.call
|
||||
else
|
||||
Status.chronological # Default
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue