Skip to content

Commit

Permalink
temp remove thread recs
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Jan 12, 2025
1 parent df4272a commit a0a0f4f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions app/services/thread/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/Southclaws/fault/fctx"
"github.com/Southclaws/fault/fmsg"
"github.com/Southclaws/fault/ftag"
"go.uber.org/zap"

"github.com/Southclaws/storyden/app/resources/pagination"
"github.com/Southclaws/storyden/app/resources/post"
Expand Down Expand Up @@ -53,12 +52,12 @@ func (s *service) Get(
}
}

recommendations, err := s.recommender.Recommend(ctx, thr)
if err != nil {
s.l.Warn("failed to aggregate recommendations", zap.Error(err))
} else {
thr.Related = append(thr.Related, recommendations...)
}
// recommendations, err := s.recommender.Recommend(ctx, thr)
// if err != nil {
// s.l.Warn("failed to aggregate recommendations", zap.Error(err))
// } else {
// thr.Related = append(thr.Related, recommendations...)
// }

return thr, nil
}

0 comments on commit a0a0f4f

Please sign in to comment.