diff options
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/api/endpoints/users/show.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/users/show.ts b/src/server/api/endpoints/users/show.ts index fb6996e2ea..fd51d386b8 100644 --- a/src/server/api/endpoints/users/show.ts +++ b/src/server/api/endpoints/users/show.ts @@ -66,7 +66,7 @@ module.exports = (params, me) => new Promise(async (res, rej) => { // Get 'host' parameter const [host, hostErr] = $(params.host).optional.string().$; - if (hostErr) return rej('invalid username param'); + if (hostErr) return rej('invalid host param'); if (userId === undefined && typeof username !== 'string') { return rej('userId or pair of username and host is required'); |