reduce constraints for when to show forum post vote links (#3691)

This commit is contained in:
Albert Yi
2018-05-15 11:20:16 -07:00
parent 32ad389581
commit 308cfc2376
4 changed files with 7 additions and 9 deletions

View File

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