[API] Fix #3203
This commit is contained in:
parent
37bfb79123
commit
15a2881083
|
@ -1,5 +1,6 @@
|
|||
import { toUnicode } from 'punycode';
|
||||
|
||||
export default (host: string) => {
|
||||
if (host == null) return null;
|
||||
return toUnicode(host).toLowerCase();
|
||||
};
|
||||
|
|
|
@ -28,7 +28,7 @@ export const meta = {
|
|||
},
|
||||
|
||||
host: {
|
||||
validator: $.str.optional,
|
||||
validator: $.str.optional.nullable,
|
||||
},
|
||||
|
||||
includeReplies: {
|
||||
|
|
Loading…
Reference in a new issue