bug fix for edge case with reltagcalc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user