Verified Commit 5bb2eb56 authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix avatar url validation

parent 557b13ae
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment