1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-17 06:45:36 +02:00

Merge branch 'develop' into mkjs-n

This commit is contained in:
tamaina
2023-05-29 13:02:41 +00:00
116 changed files with 2386 additions and 1892 deletions

View File

@@ -21,7 +21,7 @@ export default class extends Endpoint<'admin/relays/add'> {
) {
super(async (ps, me) => {
try {
if (new URL(ps.inbox).protocol !== 'https:') throw 'https only';
if (new URL(ps.inbox).protocol !== 'https:') throw new Error('https only');
} catch {
throw new ApiError(this.meta.errors.invalidUrl);
}