diff options
Diffstat (limited to 'app/models/node.rb')
| -rw-r--r-- | app/models/node.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/models/node.rb b/app/models/node.rb index 0a9cd2d1..274b2f94 100644 --- a/app/models/node.rb +++ b/app/models/node.rb | |||
| @@ -249,7 +249,9 @@ class Node < ApplicationRecord | |||
| 249 | self.head.save! | 249 | self.head.save! |
| 250 | self.draft = nil | 250 | self.draft = nil |
| 251 | 251 | ||
| 252 | NodeAction.record!(:node => self, :page => self.head, :user => current_user, | 252 | NodeAction.record!(:node => self, |
| 253 | :participants => [self] + NodeAction.changed_assets(outgoing_head, self.head), | ||
| 254 | :page => self.head, :user => current_user, | ||
| 253 | :action => "publish", :via => "draft", | 255 | :action => "publish", :via => "draft", |
| 254 | **NodeAction.head_diff(outgoing_head, self.head)) | 256 | **NodeAction.head_diff(outgoing_head, self.head)) |
| 255 | end | 257 | end |
| @@ -296,7 +298,9 @@ class Node < ApplicationRecord | |||
| 296 | self.head = page | 298 | self.head = page |
| 297 | self.save! | 299 | self.save! |
| 298 | 300 | ||
| 299 | NodeAction.record!(:node => self, :page => page, :user => current_user, | 301 | NodeAction.record!(:node => self, |
| 302 | :participants => [self] + NodeAction.changed_assets(outgoing_head, page), | ||
| 303 | :page => page, :user => current_user, | ||
| 300 | :action => "publish", :via => "revision", | 304 | :action => "publish", :via => "revision", |
| 301 | **NodeAction.head_diff(outgoing_head, page)) | 305 | **NodeAction.head_diff(outgoing_head, page)) |
| 302 | self | 306 | self |
