diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-04-01 19:57:36 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-01 19:57:36 +0900 |
| commit | fabda94932ebdd012b0772ce1e63ac515f546d84 (patch) | |
| tree | 1c5ffb9d42ebdb9f1830b331d3c1611b8ebc13ae /src/server/api/endpoints | |
| parent | fix(package): update html-minifier to version 3.5.13 (diff) | |
| parent | Merge pull request #1354 from syuilo/greenkeeper/bootstrap-vue-2.0.0-rc.4 (diff) | |
| download | misskey-fabda94932ebdd012b0772ce1e63ac515f546d84.tar.gz misskey-fabda94932ebdd012b0772ce1e63ac515f546d84.tar.bz2 misskey-fabda94932ebdd012b0772ce1e63ac515f546d84.zip | |
Merge branch 'master' into greenkeeper/html-minifier-3.5.13
Diffstat (limited to 'src/server/api/endpoints')
| -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 9cd8716fe5..f7b37193b8 100644 --- a/src/server/api/endpoints/users/show.ts +++ b/src/server/api/endpoints/users/show.ts @@ -26,7 +26,7 @@ module.exports = (params, me) => new Promise(async (res, rej) => { if (usernameErr) return rej('invalid username param'); // Get 'host' parameter - const [host, hostErr] = $(params.host).optional.string().$; + const [host, hostErr] = $(params.host).nullable.optional.string().$; if (hostErr) return rej('invalid host param'); if (userId === undefined && typeof username !== 'string') { |