Change from after_create to after_create_commit for :create_first_reaction (#5341) [deploy]

This commit is contained in:
Ben Halpern 2020-01-02 18:15:26 -05:00 committed by GitHub
parent c64bfdb652
commit 242c6eb5dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ class Comment < ApplicationRecord
after_destroy :after_destroy_actions
before_destroy :before_destroy_actions
after_create :send_email_notification, if: :should_send_email_notification?
after_create :create_first_reaction
after_create_commit :create_first_reaction
after_create :send_to_moderator
before_save :set_markdown_character_count, if: :body_markdown
before_create :adjust_comment_parent_based_on_depth