Closed asafge closed 11 years ago
From the source:
compute_story_score: function(story) { var score = 0; var intelligence = story.get('intelligence'); var score_max = Math.max(intelligence['title'], intelligence['author'], intelligence['tags']); var score_min = Math.min(intelligence['title'], intelligence['author'], intelligence['tags']); if (score_max > 0) score = score_max; else if (score_min < 0) score = score_min; if (score == 0) score = intelligence['feed']; return score; },
From the source:
compute_story_score: function(story) { var score = 0; var intelligence = story.get('intelligence'); var score_max = Math.max(intelligence['title'], intelligence['author'], intelligence['tags']); var score_min = Math.min(intelligence['title'], intelligence['author'], intelligence['tags']); if (score_max > 0) score = score_max; else if (score_min < 0) score = score_min; if (score == 0) score = intelligence['feed']; return score; },