diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-03-29 21:45:43 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-29 21:45:43 +0900 |
| commit | 228d3141a705eeb8e2cef9b5ca9824268206ef57 (patch) | |
| tree | d5a7554421d4f34d375ab0f8f223238fc58aaecd /src/server/api/endpoints/users | |
| parent | Update show.ts (diff) | |
| download | sharkey-228d3141a705eeb8e2cef9b5ca9824268206ef57.tar.gz sharkey-228d3141a705eeb8e2cef9b5ca9824268206ef57.tar.bz2 sharkey-228d3141a705eeb8e2cef9b5ca9824268206ef57.zip | |
Update show.ts
Diffstat (limited to 'src/server/api/endpoints/users')
| -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'); |