Updated import for TypePad

This commit is contained in:
Robin Ward
2014-03-18 18:02:33 -04:00
parent 44888f7acc
commit d3f1eb395d
7 changed files with 158 additions and 26 deletions

View File

@@ -209,6 +209,7 @@ class PostCreator
end
def rollback_if_host_spam_detected
return if @opts[:skip_validations]
if @post.has_host_spam?
@post.errors.add(:base, I18n.t(:spamming_host))
@errors = @post.errors