mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix avatar url validation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user