This commit is contained in:
kakkokari-gtyih 2024-07-30 17:39:50 +09:00
parent 3b5cfc5d02
commit 8c5dda2c76
1 changed files with 5 additions and 1 deletions

View File

@ -498,7 +498,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
this.globalEventService.publishInternalEvent('localUserUpdated', { id: user.id });
}
if (Object.keys(_profileUpdates).length > 0 || profile.verifiedLinks.length > 0) {
if (
Object.keys(_profileUpdates).length > 0 ||
profile.fields.filter(x => x.value.startsWith('https://')).length > 0 ||
profile.verifiedLinks.length > 0
) {
await this.userProfilesRepository.update(user.id, {
..._profileUpdates,
verifiedLinks: [],