/favorites: fixup leftover related tags calculator code.
Fixup for 6dd331745.
This commit is contained in:
@@ -6,11 +6,7 @@ module PostSetPresenters
|
|||||||
|
|
||||||
def initialize(post_set)
|
def initialize(post_set)
|
||||||
@post_set = post_set
|
@post_set = post_set
|
||||||
@tag_set_presenter = TagSetPresenter.new(
|
@tag_set_presenter = TagSetPresenter.new(RelatedTagCalculator.frequent_tags_for_posts(post_set.posts).take(25))
|
||||||
RelatedTagCalculator.calculate_from_sample_to_array(
|
|
||||||
post_set.tag_string
|
|
||||||
).map {|x| x[0]}
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user