Skip to content

Commit

Permalink
Update app/controllers/replies_controller.rb
Browse files Browse the repository at this point in the history
Co-authored-by: teceler <[email protected]>
  • Loading branch information
redmvc and teceler authored Jan 11, 2025
1 parent 24388da commit 6bd02d5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/controllers/replies_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,7 @@ def post_replies(new_reply: nil)
redirect_to post_path(errored_reply.post) and return
end

if @multi_replies.length == 1
flash[:success] = "Reply posted."
else
flash[:success] = "Replies posted."
end
flash[:success] = "#{'Reply'.pluralize(@multi_replies.length)} posted."
redirect_to reply_path(first_reply, anchor: "reply-#{first_reply.id}")
end

Expand Down

0 comments on commit 6bd02d5

Please sign in to comment.