Fix avatar url validation
This commit is contained in:
parent
557b13ae24
commit
5bb2eb5660
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue