Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/helpers/comment_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ module CommentHelper
class CommentError < ArgumentError
end

# NOTE:
# reply_to parameter is handled in CommentsController,
# but it is not passed to add_comment here.
# This may cause replies to be posted as independent comments.

def create_comment(node, user, body)
@comment = node.add_comment(uid: user.uid, body: body)
if user && @comment.save
Expand Down
Loading