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

Commit

Permalink
MQ: important change: do not use the node->user as notification targe…
Browse files Browse the repository at this point in the history
…tId, as it is now always set, and thus breaks the cross-users messaging.
  • Loading branch information
cdujeu committed Sep 24, 2016
1 parent 8d51378 commit 7766fb4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/plugins/core.mq/src/MqManager.php
Expand Up @@ -170,7 +170,8 @@ public function publishNodeChange($origNode = null, $newNode = null, $copy = fal
$ctx = null;
if ($newNode != null) {
$ctx = $newNode->getContext();
$targetUserId = $newNode->getUserId();
//$targetUserId = $newNode->getUserId();
$targetUserId = null;
$nodePaths[] = $newNode->getPath();
$update = false;
$data = array();
Expand All @@ -185,7 +186,8 @@ public function publishNodeChange($origNode = null, $newNode = null, $copy = fal
if ($origNode != null && ! $update && !$copy) {

$ctx = $origNode->getContext();
$targetUserId = $origNode->getUserId();
//$targetUserId = $origNode->getUserId();
$targetUserId = null;
$nodePaths[] = $origNode->getPath();
$content = XMLWriter::writeNodesDiff(array("REMOVE" => array($origNode->getPath())));

Expand Down

0 comments on commit 7766fb4

Please sign in to comment.