mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 03:32:49 +08:00
Fix usage of UrlGenerator in notifications
This commit is contained in:
parent
2ec183778c
commit
4cf481355f
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace Flarum\Api\Controller;
|
||||
|
||||
use Flarum\Api\UrlGenerator;
|
||||
use Flarum\Http\UrlGenerator;
|
||||
use Flarum\Discussion\Discussion;
|
||||
use Flarum\Notification\NotificationRepository;
|
||||
use Flarum\User\Exception\PermissionDeniedException;
|
||||
|
@ -92,7 +92,7 @@ class ListNotificationsController extends AbstractListController
|
|||
}
|
||||
|
||||
$document->addPaginationLinks(
|
||||
$this->url->toRoute('notifications.index'),
|
||||
$this->url->to('api')->route('notifications.index'),
|
||||
$request->getQueryParams(),
|
||||
$offset,
|
||||
$limit,
|
||||
|
|
Loading…
Reference in New Issue
Block a user