This commit is contained in:
r888888888
2018-04-28 17:42:39 -07:00
parent 11d7010c92
commit 015aa5abfe

View File

@@ -133,7 +133,7 @@ class ForumPost < ApplicationRecord
def votable?
# shortcut to eliminate posts that are probably not tag change requests
body.match(/->/) && (bulk_update_request.present? || tag_relationship.present?) && created_at >= TagRelationship::EXPIRY.days.ago
body =~ /->/ && (bulk_update_request.present? || tag_relationship.present?) && created_at >= TagRelationship::EXPIRY.days.ago
end
def voted?(user, score)