fix(server): external domain url validation ()

* fix(web): Changes externalDomain to IsUrl()

* refactor(web): asset viewer actions ()

* refactor(web): asset viewer actions

* motion photo slot and more refactoring

fix(web): Changes externalDomain to IsUrl()

---------

Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
This commit is contained in:
martyfuhry 2024-07-31 14:09:30 -04:00 committed by GitHub
commit 2c05ceaf50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -376,7 +376,8 @@ class SystemConfigReverseGeocodingDto {
}
class SystemConfigServerDto {
@IsString()
@ValidateIf((_, value: string) => value !== '')
@IsUrl({ require_tld: false, require_protocol: true, protocols: ['http', 'https'] })
externalDomain!: string;
@IsString()