mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 10:27:28 -07:00
[API] Fix #3203
This commit is contained in:
parent
383dcb36f3
commit
2d1238c199
2 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
import { toUnicode } from 'punycode';
|
import { toUnicode } from 'punycode';
|
||||||
|
|
||||||
export default (host: string) => {
|
export default (host: string) => {
|
||||||
|
if (host == null) return null;
|
||||||
return toUnicode(host).toLowerCase();
|
return toUnicode(host).toLowerCase();
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,7 +28,7 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
host: {
|
host: {
|
||||||
validator: $.str.optional,
|
validator: $.str.optional.nullable,
|
||||||
},
|
},
|
||||||
|
|
||||||
includeReplies: {
|
includeReplies: {
|
||||||
|
|
Loading…
Reference in a new issue