diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-09 11:49:37 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-09 11:49:37 +0200 |
commit | 5bb2eb5660c87700bc70fe82219c1a84e7c7b177 (patch) | |
tree | 8a94c707ba2ef8e122c9cae6360d7f1338ac2f84 /server/models | |
parent | 557b13ae24019d9ab214bbea7eaa0f892c8f4b05 (diff) | |
download | PeerTube-5bb2eb5660c87700bc70fe82219c1a84e7c7b177.tar.gz PeerTube-5bb2eb5660c87700bc70fe82219c1a84e7c7b177.tar.zst PeerTube-5bb2eb5660c87700bc70fe82219c1a84e7c7b177.zip |
Fix avatar url validation
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/avatar/avatar.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<AvatarModel> { | |||
24 | filename: string | 24 | filename: string |
25 | 25 | ||
26 | @AllowNull(true) | 26 | @AllowNull(true) |
27 | @Is('AvatarFileUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'fileUrl')) | 27 | @Is('AvatarFileUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'fileUrl', true)) |
28 | @Column | 28 | @Column |
29 | fileUrl: string | 29 | fileUrl: string |
30 | 30 | ||