mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 16:16:37 +02:00
fix: allow exposeUid and exposeGroupName to work with slugs with mixed capitalization
This commit is contained in:
@@ -151,7 +151,7 @@ async function expose(exposedField, method, field, req, res, next) {
|
||||
if (!req.params.hasOwnProperty(field)) {
|
||||
return next();
|
||||
}
|
||||
const value = await method(req.params[field]);
|
||||
const value = await method(String(req.params[field]).toLowerCase());
|
||||
if (!value) {
|
||||
next('route');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user