bug fix for edge case with reltagcalc

This commit is contained in:
albert
2013-04-02 10:20:38 -04:00
parent 363a00f178
commit 9dd141ded4

View File

@@ -1,6 +1,6 @@
class RelatedTagCalculator
def self.find_tags(tag, limit)
Post.with_timeout(10_000) do
Post.with_timeout(10_000, []) do
Post.tag_match(tag).limit(limit).select("posts.tag_string").reorder("posts.md5").map(&:tag_string)
end
end