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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user