FIX: don't attempt to bump draft sequence if no editor

Rare case on old installs
This commit is contained in:
Sam 2018-07-11 17:06:49 +10:00
parent 0c59346478
commit 574d447254
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ class Post < ActiveRecord::Base
def advance_draft_sequence
return if topic.blank? # could be deleted
DraftSequence.next!(last_editor_id, topic.draft_key)
DraftSequence.next!(last_editor_id, topic.draft_key) if last_editor_id
end
# TODO: move to post-analyzer?