A platform for community discussion. Free, open, simple.
Revert "FIX: don't compute draft for (ro)bots 🤖 in topics list"
Guo Xiang Tan245e8212cac1
diff --git a/lib/topic_list_responder.rb b/lib/topic_list_responder.rbindex 545b8ece1de..c590e250ff2 100644--- a/lib/topic_list_responder.rb+++ b/lib/topic_list_responder.rb@@ -7,11 +7,8 @@ module TopicListResponderdiscourse_expires_in 1.minutelist.draft_key = Draft::NEW_TOPIC-- if current_user&.human?- list.draft_sequence = DraftSequence.current(current_user, list.draft_key)- list.draft = Draft.get(current_user, list.draft_key, list.draft_sequence)- end+ list.draft_sequence = DraftSequence.current(current_user, Draft::NEW_TOPIC)+ list.draft = Draft.get(current_user, list.draft_key, list.draft_sequence) if current_userrespond_to do |format|format.html do