Skip to content

Commit

Permalink
Merge pull request #1541 from codidact/cellio/clearer-comment-notific…
Browse files Browse the repository at this point in the history
…ation

clarify thread name in comment notifications
  • Loading branch information
ArtOfCode- authored Feb 25, 2025
2 parents 9122bcb + c8df457 commit 4acd73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/comments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def apply_pings(pings)
next if user.id == @comment.post.user_id

title = @post.parent.nil? ? @post.title : @post.parent.title
user.create_notification("You were mentioned in a comment to #{@comment_thread.title} " \
user.create_notification("You were mentioned in a comment in the thread '#{@comment_thread.title}' " \
"on the post '#{title}'",
helpers.comment_link(@comment))
end
Expand Down

0 comments on commit 4acd73c

Please sign in to comment.