diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-07-27 18:01:58 +0000 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-07-27 18:01:58 +0000 |
| commit | 823fdf2745b45a93ac0a6307870e1a4abe1cb00e (patch) | |
| tree | 34cb941615a4f12f90119ee2120d73f64294ccf8 /packages/backend/src/server/api | |
| parent | merge: Fix extremely poor performance of users/report-abuse endpoint *FOR STA... (diff) | |
| parent | include profile URI for link verification (diff) | |
| download | sharkey-823fdf2745b45a93ac0a6307870e1a4abe1cb00e.tar.gz sharkey-823fdf2745b45a93ac0a6307870e1a4abe1cb00e.tar.bz2 sharkey-823fdf2745b45a93ac0a6307870e1a4abe1cb00e.zip | |
merge: Fix link verification for actors without a url field *FOR STABLE* (!1193)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1193
Approved-by: Hazelnoot <acomputerdog@gmail.com>
Diffstat (limited to 'packages/backend/src/server/api')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/i/update.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index 5767880531..65dcf6301f 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -603,11 +603,15 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- this.globalEventService.publishInternalEvent('localUserUpdated', { id: user.id }); } - const verified_links = await verifyFieldLinks(newFields, `${this.config.url}/@${user.username}`, this.httpRequestService); + const profileUrls = [ + this.userEntityService.genLocalUserUri(user.id), + `${this.config.url}/@${user.username}`, + ]; + const verifiedLinks = await verifyFieldLinks(newFields, profileUrls, this.httpRequestService); await this.userProfilesRepository.update(user.id, { ...profileUpdates, - verifiedLinks: verified_links, + verifiedLinks, }); const iObj = await this.userEntityService.pack(user.id, user, { |