Differential D20150 Diff 48125 src/applications/chatlog/controller/PhabricatorChatLogChannelLogController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/chatlog/controller/PhabricatorChatLogChannelLogController.php
<?php | <?php | ||||
final class PhabricatorChatLogChannelLogController | final class PhabricatorChatLogChannelLogController | ||||
extends PhabricatorChatLogController { | extends PhabricatorChatLogController { | ||||
public function shouldAllowPublic() { | public function shouldAllowPublic() { | ||||
return true; | return true; | ||||
} | } | ||||
public function handleRequest(AphrontRequest $request) { | public function handleRequest(AphrontRequest $request) { | ||||
$viewer = $request->getViewer(); | $viewer = $request->getViewer(); | ||||
$id = $request->getURIData('channelID'); | $id = $request->getURIData('channelID'); | ||||
$uri = clone $request->getRequestURI(); | $uri = new PhutilURI($request->getPath()); | ||||
epriestley: Test plan: viewed `/chatlog/channel/1/`, which hits this code before 404'ing. | |||||
$uri->setQueryParams(array()); | |||||
$pager = new AphrontCursorPagerView(); | $pager = new AphrontCursorPagerView(); | ||||
$pager->setURI($uri); | $pager->setURI($uri); | ||||
$pager->setPageSize(250); | $pager->setPageSize(250); | ||||
$query = id(new PhabricatorChatLogQuery()) | $query = id(new PhabricatorChatLogQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withChannelIDs(array($id)); | ->withChannelIDs(array($id)); | ||||
▲ Show 20 Lines • Show All 298 Lines • Show Last 20 Lines |
Test plan: viewed /chatlog/channel/1/, which hits this code before 404'ing.