新增:评论丰富更新删除操作,issue事件粒度更细

This commit is contained in:
2023-04-11 11:52:03 +08:00
parent 7f0989f69d
commit afa1cdf842
10 changed files with 50 additions and 26 deletions

View File

@@ -275,6 +275,12 @@ class Journal < ApplicationRecord
def to_builder
Jbuilder.new do |journal|
journal.(self, :id, :notes, :comments_count)
if self.parent_journal.present?
journal.parent_journal self.parent_journal.to_builder
end
if self.reply_journal.present?
journal.reply_journal self.reply_journal.to_builder
end
end
end
end