Skip to content

Commit 2179a3f

Browse files
committed
ensured markdown stripping is applied when creating threads ttoo
1 parent 18a8aac commit 2179a3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/comments_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def create_thread
2626

2727
body = params[:body]
2828

29-
@comment_thread = CommentThread.new(title: title, post: @post)
29+
@comment_thread = CommentThread.new(title: helpers.strip_markdown(title, strip_leading_quote: true), post: @post)
3030
@comment = Comment.new(post: @post, content: body, user: current_user, comment_thread: @comment_thread)
3131

3232
pings = check_for_pings(@comment_thread, body)

0 commit comments

Comments
 (0)