fix: fetch /api/unread read route for topbar drawer
require(['api']).api.get() targets NodeBB's v3 write API and 404s on /api/v3/unread. Use a plain fetch against the read route /api/unread instead.
This commit is contained in:
@@ -11,7 +11,7 @@ assert(
|
||||
'client.js should fetch unread topics when the unread dropdown opens'
|
||||
);
|
||||
assert(
|
||||
client.includes("api.get('/unread'"),
|
||||
client.includes("'/api/unread'"),
|
||||
'client.js should load the unread list from the /unread API'
|
||||
);
|
||||
assert(
|
||||
|
||||
Reference in New Issue
Block a user