2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

FIX: Too much Javascript :)

This commit is contained in:
Robin Ward 2018-02-07 11:46:05 -05:00
parent 209a6cae2c
commit 6a5dad0b86

View file

@ -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