mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: don't attempt to bump draft sequence if no editor
Rare case on old installs
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user