FIX: auto-message shouldn't generate notifications

This commit is contained in:
Régis Hanol
2015-03-11 19:07:17 +01:00
parent 6cd4330335
commit c8631a7a8b
4 changed files with 20 additions and 5 deletions

View File

@ -96,7 +96,7 @@ class PostCreator
if @post && @post.errors.empty?
publish
PostAlerter.post_created(@post) unless @opts[:import_mode]
PostAlerter.post_created(@post) unless @opts[:import_mode] || @opts[:skip_notifications]
track_latest_on_category
enqueue_jobs