diff --git a/src/server/api/endpoints/users/show.ts b/src/server/api/endpoints/users/show.ts index fb6996e2e..fd51d386b 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');