Merge branch 'develop' into mkjs-n

This commit is contained in:
tamaina 2023-05-29 13:02:41 +00:00
commit d647df7f63
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);
}