feat: プロフィールでのリンク検証

Resolve #11099
This commit is contained in:
syuilo
2023-09-21 11:58:51 +09:00
parent 1250309a69
commit e41619775f
13 changed files with 93 additions and 7 deletions

View File

@@ -48,6 +48,12 @@ export class MiUserProfile {
value: string;
}[];
@Column('varchar', {
array: true,
default: '{}',
})
public verifiedLinks: string[];
@Column('varchar', {
length: 32, nullable: true,
})

View File

@@ -169,6 +169,15 @@ export const packedUserDetailedNotMeOnlySchema = {
},
},
},
verifiedLinks: {
type: 'array',
nullable: false, optional: false,
items: {
type: 'string',
nullable: false, optional: false,
format: 'url',
},
},
followersCount: {
type: 'number',
nullable: false, optional: false,