/favorites: fixup leftover related tags calculator code.

Fixup for 6dd331745.
This commit is contained in:
evazion
2019-08-31 19:58:38 -05:00
parent ee77b101af
commit 7f7730d249

View File

@@ -6,11 +6,7 @@ module PostSetPresenters
def initialize(post_set)
@post_set = post_set
@tag_set_presenter = TagSetPresenter.new(
RelatedTagCalculator.calculate_from_sample_to_array(
post_set.tag_string
).map {|x| x[0]}
)
@tag_set_presenter = TagSetPresenter.new(RelatedTagCalculator.frequent_tags_for_posts(post_set.posts).take(25))
end
end
end