From 015aa5abfe12db7e503b8f5725ac3e447cb6814b Mon Sep 17 00:00:00 2001 From: r888888888 Date: Sat, 28 Apr 2018 17:42:39 -0700 Subject: [PATCH] fixes #3686 --- app/models/forum_post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/forum_post.rb b/app/models/forum_post.rb index c18f5a912..8fe26fe4a 100644 --- a/app/models/forum_post.rb +++ b/app/models/forum_post.rb @@ -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)