Merge branch 'develop' into mkjs-n
This commit is contained in:
commit
d647df7f63
116 changed files with 2386 additions and 1892 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue