fix: Remove unused weights variable in GetAlgorithmicFeed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c3329a0893
commit
e0056789ac
|
|
@ -445,8 +445,6 @@ func (s *FeedAlgorithmService) updatePostScore(ctx context.Context, score FeedSc
|
||||||
|
|
||||||
// Get feed with algorithmic ranking
|
// Get feed with algorithmic ranking
|
||||||
func (s *FeedAlgorithmService) GetAlgorithmicFeed(ctx context.Context, viewerID string, limit int, offset int, category string) ([]string, error) {
|
func (s *FeedAlgorithmService) GetAlgorithmicFeed(ctx context.Context, viewerID string, limit int, offset int, category string) ([]string, error) {
|
||||||
weights := s.GetDefaultWeights()
|
|
||||||
|
|
||||||
// Update scores for recent posts first
|
// Update scores for recent posts first
|
||||||
err := s.UpdateFeedScores(ctx, []string{}, viewerID) // This would normally get recent posts
|
err := s.UpdateFeedScores(ctx, []string{}, viewerID) // This would normally get recent posts
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue