Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Prevent compat issue with old username

Chocobozzz6c4d6ec83102
diff --git a/server/models/user/user.ts b/server/models/user/user.ts
index a2c2497fd5..1a7c843907 100644
--- a/server/models/user/user.ts
+++ b/server/models/user/user.ts
@@ -50,7 +50,6 @@ import {
isUserP2PEnabledValid,
isUserPasswordValid,
isUserRoleValid,
- isUserUsernameValid,
isUserVideoLanguages,
isUserVideoQuotaDailyValid,
isUserVideoQuotaValid,
@@ -260,7 +259,6 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> {
password: string
@AllowNull(false)
- @Is('UserUsername', value => throwIfNotValid(value, isUserUsernameValid, 'user name'))
@Column
username: string