diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-07-04 10:00:40 -0400 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2025-07-27 18:03:35 +0100 |
| commit | 2c8c422cb6d27515fdebf42f19f1d85a7fdac3fe (patch) | |
| tree | e367d5135eb4dcd75008d297190b7934dbee467b /packages/backend/src/core | |
| parent | merge: disable outgoing mastodon quotes *FOR STABLE* (!1169) (diff) | |
| download | sharkey-2c8c422cb6d27515fdebf42f19f1d85a7fdac3fe.tar.gz sharkey-2c8c422cb6d27515fdebf42f19f1d85a7fdac3fe.tar.bz2 sharkey-2c8c422cb6d27515fdebf42f19f1d85a7fdac3fe.zip | |
include profile URI for link verification
Diffstat (limited to 'packages/backend/src/core')
| -rw-r--r-- | packages/backend/src/core/activitypub/models/ApPersonService.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/backend/src/core/activitypub/models/ApPersonService.ts b/packages/backend/src/core/activitypub/models/ApPersonService.ts index 29f7459219..bc602bbd5b 100644 --- a/packages/backend/src/core/activitypub/models/ApPersonService.ts +++ b/packages/backend/src/core/activitypub/models/ApPersonService.ts @@ -377,7 +377,8 @@ export class ApPersonService implements OnModuleInit, OnApplicationShutdown { const url = this.apUtilityService.findBestObjectUrl(person); - const verifiedLinks = url ? await verifyFieldLinks(fields, url, this.httpRequestService) : []; + const profileUrls = url ? [url, person.id] : [person.id]; + const verifiedLinks = await verifyFieldLinks(fields, profileUrls, this.httpRequestService); // Create user let user: MiRemoteUser | null = null; @@ -626,7 +627,8 @@ export class ApPersonService implements OnModuleInit, OnApplicationShutdown { const url = this.apUtilityService.findBestObjectUrl(person); - const verifiedLinks = url ? await verifyFieldLinks(fields, url, this.httpRequestService) : []; + const profileUrls = url ? [url, person.id] : [person.id]; + const verifiedLinks = await verifyFieldLinks(fields, profileUrls, this.httpRequestService); const updates = { lastFetchedAt: new Date(), |