FIX: Bot should only respond to regular posts.

This commit is contained in:
Guo Xiang Tan
2017-06-05 15:21:19 +09:00
parent 0c203e61cd
commit 3621647fb5
2 changed files with 13 additions and 1 deletions

View File

@ -28,7 +28,7 @@ module DiscourseNarrativeBot
def select
data = Store.get(@user.id)
if @post && !is_topic_action?
if @post && @post.post_type == Post.types[:regular] && !is_topic_action?
is_reply = @input == :reply
return if is_reply && reset_track