fix
This commit is contained in:
parent
3b5cfc5d02
commit
8c5dda2c76
|
@ -498,7 +498,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
this.globalEventService.publishInternalEvent('localUserUpdated', { id: user.id });
|
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, {
|
await this.userProfilesRepository.update(user.id, {
|
||||||
..._profileUpdates,
|
..._profileUpdates,
|
||||||
verifiedLinks: [],
|
verifiedLinks: [],
|
||||||
|
|
Loading…
Reference in New Issue