From 228d3141a705eeb8e2cef9b5ca9824268206ef57 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 29 Mar 2018 21:45:43 +0900 Subject: [PATCH] Update show.ts --- src/server/api/endpoints/users/show.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');