Differential D15065 Diff 36383 src/applications/project/controller/PhabricatorProjectWatchController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectWatchController.php
Show All 24 Lines | if ($via == 'profile') { | ||||
$done_uri = "/project/members/{$id}/"; | $done_uri = "/project/members/{$id}/"; | ||||
} | } | ||||
if ($request->isDialogFormPost()) { | if ($request->isDialogFormPost()) { | ||||
$edge_action = null; | $edge_action = null; | ||||
switch ($action) { | switch ($action) { | ||||
case 'watch': | case 'watch': | ||||
$edge_action = '+'; | $edge_action = '+'; | ||||
$force_subscribe = true; | |||||
break; | break; | ||||
case 'unwatch': | case 'unwatch': | ||||
$edge_action = '-'; | $edge_action = '-'; | ||||
$force_subscribe = false; | |||||
break; | break; | ||||
} | } | ||||
$type_watcher = PhabricatorObjectHasWatcherEdgeType::EDGECONST; | $type_watcher = PhabricatorObjectHasWatcherEdgeType::EDGECONST; | ||||
$member_spec = array( | $member_spec = array( | ||||
$edge_action => array($viewer->getPHID() => $viewer->getPHID()), | $edge_action => array($viewer->getPHID() => $viewer->getPHID()), | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |