Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 7766fb4

Browse files
committed
MQ: important change: do not use the node->user as notification targetId, as it is now always set, and thus breaks the cross-users messaging.
1 parent 8d51378 commit 7766fb4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/plugins/core.mq/src/MqManager.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ public function publishNodeChange($origNode = null, $newNode = null, $copy = fal
170170
$ctx = null;
171171
if ($newNode != null) {
172172
$ctx = $newNode->getContext();
173-
$targetUserId = $newNode->getUserId();
173+
//$targetUserId = $newNode->getUserId();
174+
$targetUserId = null;
174175
$nodePaths[] = $newNode->getPath();
175176
$update = false;
176177
$data = array();
@@ -185,7 +186,8 @@ public function publishNodeChange($origNode = null, $newNode = null, $copy = fal
185186
if ($origNode != null && ! $update && !$copy) {
186187

187188
$ctx = $origNode->getContext();
188-
$targetUserId = $origNode->getUserId();
189+
//$targetUserId = $origNode->getUserId();
190+
$targetUserId = null;
189191
$nodePaths[] = $origNode->getPath();
190192
$content = XMLWriter::writeNodesDiff(array("REMOVE" => array($origNode->getPath())));
191193

0 commit comments

Comments
 (0)