mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 17:35:13 +08:00
Ensure we don't preload index data on non-index pages
This commit is contained in:
parent
806f67f7eb
commit
6d57f902b3
|
@ -18,7 +18,7 @@ class RegisterForumRoutes
|
|||
$this->routes = $routes;
|
||||
}
|
||||
|
||||
public function get($url, $name, $action = 'Flarum\Forum\Actions\IndexAction')
|
||||
public function get($url, $name, $action = 'Flarum\Forum\Actions\ClientAction')
|
||||
{
|
||||
$this->route('get', $url, $name, $action);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
use Flarum\Support\ClientAction as BaseClientAction;
|
||||
|
||||
abstract class ClientAction extends BaseClientAction
|
||||
class ClientAction extends BaseClientAction
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
|
|
@ -67,19 +67,19 @@ class ForumServiceProvider extends ServiceProvider
|
|||
$routes->get(
|
||||
'/u/{username}[/{filter}]',
|
||||
'flarum.forum.user',
|
||||
$this->action('Flarum\Forum\Actions\IndexAction')
|
||||
$this->action('Flarum\Forum\Actions\ClientAction')
|
||||
);
|
||||
|
||||
$routes->get(
|
||||
'/settings',
|
||||
'flarum.forum.settings',
|
||||
$this->action('Flarum\Forum\Actions\IndexAction')
|
||||
$this->action('Flarum\Forum\Actions\ClientAction')
|
||||
);
|
||||
|
||||
$routes->get(
|
||||
'/notifications',
|
||||
'flarum.forum.notifications',
|
||||
$this->action('Flarum\Forum\Actions\IndexAction')
|
||||
$this->action('Flarum\Forum\Actions\ClientAction')
|
||||
);
|
||||
|
||||
$routes->get(
|
||||
|
|
Loading…
Reference in New Issue
Block a user