mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 09:49:42 +00:00
FIX: don't attempt to bump draft sequence if no editor
Rare case on old installs
This commit is contained in:
parent
0c59346478
commit
574d447254
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user