Revert "FIX: don't compute draft for (ro)bots 🤖 in topics list"

This reverts commit ec8f08d0da.
This commit is contained in:
Guo Xiang Tan 2020-05-15 09:14:20 +08:00
parent e37ea4a4a1
commit 245e8212ca
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 2 additions and 5 deletions

View File

@ -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