Skip to content

A platform for community discussion. Free, open, simple.

FIX: Too much Javascript :)

Robin Ward6a5dad0b8613
diff --git a/lib/validators/post_validator.rb b/lib/validators/post_validator.rb
index 64755e558f0..40ec3fdee28 100644
--- a/lib/validators/post_validator.rb
+++ b/lib/validators/post_validator.rb
@@ -93,7 +93,7 @@ class Validators::PostValidator < ActiveModel::Validator
end
def can_post_links_validator(post)
- return if post.link_count === 0 || acting_user_is_trusted?(post, SiteSetting.min_trust_to_post_links) || private_message?(post)
+ return if post.link_count == 0 || acting_user_is_trusted?(post, SiteSetting.min_trust_to_post_links) || private_message?(post)
post.errors.add(:base, I18n.t(:links_require_trust))
end