1
0
Fork 0
forked from gitea/nas

Top posts test

This commit is contained in:
Mario 2025-06-12 20:00:16 -04:00
parent 725811a2e3
commit 16a2f4fb9e
8 changed files with 90 additions and 2 deletions

View file

@ -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