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
|
filename: string
|
||||||
|
|
||||||
@AllowNull(true)
|
@AllowNull(true)
|
||||||
@Is('AvatarFileUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'fileUrl'))
|
@Is('AvatarFileUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'fileUrl', true))
|
||||||
@Column
|
@Column
|
||||||
fileUrl: string
|
fileUrl: string
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue