mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 21:12:45 +08:00
BUG: drafts broken for new topics
This commit is contained in:
parent
31ea259624
commit
cbaa0a3a49
|
@ -102,9 +102,9 @@ class ListController < ApplicationController
|
|||
def respond(list)
|
||||
discourse_expires_in 1.minute
|
||||
|
||||
list.draft = Draft.get(current_user, list.draft_key, list.draft_sequence) if current_user
|
||||
list.draft_key = Draft::NEW_TOPIC
|
||||
list.draft_sequence = DraftSequence.current(current_user, Draft::NEW_TOPIC)
|
||||
list.draft = Draft.get(current_user, list.draft_key, list.draft_sequence) if current_user
|
||||
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
|
|
Loading…
Reference in New Issue
Block a user