From 245e8212cac1066403a13f4c3c4bfcf31509e745 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 15 May 2020 09:14:20 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"FIX:=20don't=20compute=20draft=20for?= =?UTF-8?q?=20(ro)bots=20=F0=9F=A4=96=20in=20topics=20list"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ec8f08d0da1b32213f3674d8e6dd8ff98e84d39d. --- lib/topic_list_responder.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/topic_list_responder.rb b/lib/topic_list_responder.rb index 545b8ece1de..c590e250ff2 100644 --- a/lib/topic_list_responder.rb +++ b/lib/topic_list_responder.rb @@ -7,11 +7,8 @@ module TopicListResponder discourse_expires_in 1.minute list.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_user respond_to do |format| format.html do