FIX: Skip create_post_notice when importing

approved

#1

FIX: Skip create_post_notice when importing

Imports don’t necessarily happen in chronological order, so this can cause some very unusual behavior

diff --git a/lib/post_creator.rb b/lib/post_creator.rb
index 77cc5d0..01f5571 100644
--- a/lib/post_creator.rb
+++ b/lib/post_creator.rb
@@ -514,7 +514,7 @@ class PostCreator
   end
 
   def create_post_notice
-    return if @user.bot? || @user.staged
+    return if @opts[:import_mode] || @user.bot? || @user.staged
 
     last_post_time = Post.where(user_id: @user.id)
       .order(created_at: :desc)

GitHub sha: ddd3e433


Approved #2