Fix comment searches specifying both post_tags_match and is_deleted
fixes #2450
This commit is contained in:
@@ -33,11 +33,11 @@ class Comment < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def deleted
|
def deleted
|
||||||
where("is_deleted = true")
|
where("comments.is_deleted = true")
|
||||||
end
|
end
|
||||||
|
|
||||||
def undeleted
|
def undeleted
|
||||||
where("is_deleted = false")
|
where("comments.is_deleted = false")
|
||||||
end
|
end
|
||||||
|
|
||||||
def post_tags_match(query)
|
def post_tags_match(query)
|
||||||
|
|||||||
Reference in New Issue
Block a user