Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14085648
D13734.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13734.diff
View Options
diff --git a/src/applications/feed/controller/PhabricatorFeedDetailController.php b/src/applications/feed/controller/PhabricatorFeedDetailController.php
--- a/src/applications/feed/controller/PhabricatorFeedDetailController.php
+++ b/src/applications/feed/controller/PhabricatorFeedDetailController.php
@@ -2,19 +2,13 @@
final class PhabricatorFeedDetailController extends PhabricatorFeedController {
- private $id;
-
- public function willProcessRequest(array $data) {
- $this->id = $data['id'];
- }
-
- public function processRequest() {
- $request = $this->getRequest();
- $user = $request->getUser();
+ public function handleRequest(AphrontRequest $request) {
+ $viewer = $request->getViewer();
+ $id = $request->getURIData('id');
$story = id(new PhabricatorFeedQuery())
- ->setViewer($user)
- ->withChronologicalKeys(array($this->id))
+ ->setViewer($viewer)
+ ->withChronologicalKeys(array($id))
->executeOne();
if (!$story) {
return new Aphront404Response();
@@ -27,7 +21,7 @@
$feed = array($story);
$builder = new PhabricatorFeedBuilder($feed);
- $builder->setUser($user);
+ $builder->setUser($viewer);
$feed_view = $builder->buildView();
$title = pht('Story');
diff --git a/src/applications/feed/controller/PhabricatorFeedListController.php b/src/applications/feed/controller/PhabricatorFeedListController.php
--- a/src/applications/feed/controller/PhabricatorFeedListController.php
+++ b/src/applications/feed/controller/PhabricatorFeedListController.php
@@ -2,19 +2,15 @@
final class PhabricatorFeedListController extends PhabricatorFeedController {
- private $queryKey;
-
public function shouldAllowPublic() {
return true;
}
- public function willProcessRequest(array $data) {
- $this->queryKey = idx($data, 'queryKey');
- }
+ public function handleRequest(AphrontRequest $request) {
+ $querykey = $request->getURIData('queryKey');
- public function processRequest() {
$controller = id(new PhabricatorApplicationSearchController())
- ->setQueryKey($this->queryKey)
+ ->setQueryKey($querykey)
->setSearchEngine(new PhabricatorFeedSearchEngine())
->setNavigation($this->buildSideNavView());
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 12:54 PM (15 h, 10 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6782733
Default Alt Text
D13734.diff (2 KB)
Attached To
Mode
D13734: Update Feed for handleRequest
Attached
Detach File
Event Timeline
Log In to Comment