static function cacheKey()
{
- return Cache::codeKey('router');
+ $parts = array('router');
+
+ // Many router paths depend on this setting.
+ if (common_config('singleuser', 'enabled')) {
+ $parts[] = '1user';
+ } else {
+ $parts[] = 'multi';
+ }
+
+ return Cache::codeKey(implode(':', $parts));
}
function initialize()
'deleteuser',
'geocode',
'version',
+ 'backupaccount',
+ 'deleteaccount',
+ 'restoreaccount',
);
foreach ($main as $a) {
'id' => Nickname::INPUT_FMT,
'format' => '(xml|json)'));
+ $m->connect('api/users/profile_image/:screen_name.:format',
+ array('action' => 'ApiUserProfileImage',
+ 'screen_name' => Nickname::DISPLAY_FMT,
+ 'format' => '(xml|json)'));
+
// direct messages
$m->connect('api/direct_messages.:format',
// AtomPub API
$m->connect('api/statusnet/app/service/:id.xml',
- array('action' => 'ApiAtomService',
- 'id' => Nickname::DISPLAY_FMT));
+ array('action' => 'ApiAtomService'),
+ array('id' => Nickname::DISPLAY_FMT));
$m->connect('api/statusnet/app/service.xml',
array('action' => 'ApiAtomService'));