FIX: Remove broken narrative-bot search context logic (#26319)

In the past we had logic to automatically set the search context to the current topic during the tutorial. This hasn't worked for a long time, and clearly people have still been able to complete the tutorial. In fact, it's probably better for us to teach people how to use the search un-assisted anyway.

This commit removes the dead logic, and makes a slight tweak to the copy in the unlikely event of confusion.
This commit is contained in:
David Taylor
2024-03-22 13:25:33 +00:00
committed by GitHub
parent 2507bd7b70
commit 04e365f741
3 changed files with 1 additions and 70 deletions

View File

@ -173,12 +173,6 @@ module DiscourseNarrativeBot
topic = @post.topic
post = topic.first_post
MessageBus.publish(
"/new_user_narrative/tutorial_search/#{@user.id}",
{},
user_ids: [@user.id],
)
raw = <<~MD
#{post.raw}