From 5bb2eb5660c87700bc70fe82219c1a84e7c7b177 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 9 Aug 2019 11:49:37 +0200 Subject: [PATCH] Fix avatar url validation --- server/models/avatar/avatar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/avatar/avatar.ts b/server/models/avatar/avatar.ts index 7a370bcd3..b40144592 100644 --- a/server/models/avatar/avatar.ts +++ b/server/models/avatar/avatar.ts @@ -24,7 +24,7 @@ export class AvatarModel extends Model { filename: string @AllowNull(true) - @Is('AvatarFileUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'fileUrl')) + @Is('AvatarFileUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'fileUrl', true)) @Column fileUrl: string -- 2.25.1