mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: Skip create_post_notice when importing
Imports don't necessarily happen in chronological order, so this can cause some very unusual behavior
This commit is contained in:
parent
f8480ed911
commit
ddd3e43326
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user