Fix usage of UrlGenerator in notifications

This commit is contained in:
Toby Zerner 2017-12-19 18:52:27 +10:30
parent 2ec183778c
commit 4cf481355f

View File

@ -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,