This commit is contained in:
2026-04-19 19:49:56 +09:00
parent 58429c5e8b
commit 2ea08ef4dd
10 changed files with 54 additions and 29 deletions
+1
View File
@@ -153,6 +153,7 @@ namespace :nico do
if post_created
PostVersionRecorder.record!(post:, event_type: :create, created_by_user: nil)
elsif post_changed || kept_tag_ids != desired_all_tag_ids.to_set
PostVersionRecorder.ensure_snapshot!(post, created_by_user: nil)
PostVersionRecorder.record!(post:, event_type: :update, created_by_user: nil)
end
end