Update user category exclusion handling in API and APIv2

This commit is contained in:
DariusIII
2018-12-12 20:43:14 +01:00
parent 327b6be8b2
commit 3b311188bc
7 changed files with 22 additions and 9 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ class BasePageController extends Controller
*/
protected function setUserPreferences(): void
{
$this->userdata['categoryexclusions'] = User::getCategoryExclusion(Auth::id());
$this->userdata['categoryexclusions'] = User::getCategoryExclusionById(Auth::id());
// Change the theme to user's selected theme if they selected one, else use the admin one.
if ((int) Settings::settingValue('site.main.userselstyle') === 1) {