1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Fix URI map rules to restore public feed

Summary: The /public/ rule needs to come before the more general subfilter rule.

Test Plan: Hit "all", "my projects" and "public" feeds, they all work.

Reviewers: davidreuss

Reviewed By: davidreuss

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1667
This commit is contained in:
epriestley 2012-02-22 08:03:15 -08:00
parent 07e5591015
commit e48b290094

View file

@ -34,8 +34,11 @@ class AphrontDefaultApplicationConfiguration
return $this->getResourceURIMapRules() + array(
'/(?:(?P<filter>jump)/)?$' =>
'PhabricatorDirectoryMainController',
'/(?:(?P<filter>feed)/)(?:(?P<subfilter>[^/]+)/)?$' =>
'PhabricatorDirectoryMainController',
'/(?:(?P<filter>feed)/)' => array(
'public/$' => 'PhabricatorFeedPublicStreamController',
'(?:(?P<subfilter>[^/]+)/)?$' =>
'PhabricatorDirectoryMainController',
),
'/directory/' => array(
'(?P<id>\d+)/$'
=> 'PhabricatorDirectoryCategoryViewController',
@ -368,8 +371,6 @@ class AphrontDefaultApplicationConfiguration
=> 'PhabricatorCountdownDeleteController'
),
'/feed/public/$' => 'PhabricatorFeedPublicStreamController',
'/V(?P<id>\d+)$' => 'PhabricatorSlowvotePollController',
'/vote/' => array(
'(?:view/(?P<view>\w+)/)?$' => 'PhabricatorSlowvoteListController',