We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18a8aac commit 2179a3fCopy full SHA for 2179a3f
1 file changed
app/controllers/comments_controller.rb
@@ -26,7 +26,7 @@ def create_thread
26
27
body = params[:body]
28
29
- @comment_thread = CommentThread.new(title: title, post: @post)
+ @comment_thread = CommentThread.new(title: helpers.strip_markdown(title, strip_leading_quote: true), post: @post)
30
@comment = Comment.new(post: @post, content: body, user: current_user, comment_thread: @comment_thread)
31
32
pings = check_for_pings(@comment_thread, body)
0 commit comments