Fix avatar url validation

pull/2012/head
Chocobozzz 2019-08-09 11:49:37 +02:00
parent 557b13ae24
commit 5bb2eb5660
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ export class AvatarModel extends Model<AvatarModel> {
filename: string
@AllowNull(true)
@Is('AvatarFileUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'fileUrl'))
@Is('AvatarFileUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'fileUrl', true))
@Column
fileUrl: string