summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints/i/update.ts
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-03-02 16:05:12 -0500
committerFreya Murphy <freya@freyacat.org>2026-03-02 17:39:38 -0500
commit284b87dae85a356dd543a03f81d12031b11f7554 (patch)
tree5df602a3d98fbf9a8f457fab3d749707bfd89cde /packages/backend/src/server/api/endpoints/i/update.ts
parentmerge: Release/2025.4.5 (!1258) (diff)
downloadsharkey-284b87dae85a356dd543a03f81d12031b11f7554.tar.gz
sharkey-284b87dae85a356dd543a03f81d12031b11f7554.tar.bz2
sharkey-284b87dae85a356dd543a03f81d12031b11f7554.zip
split url into webUrl and localUrl (like mastodon)
Diffstat (limited to 'packages/backend/src/server/api/endpoints/i/update.ts')
-rw-r--r--packages/backend/src/server/api/endpoints/i/update.ts4
1 files changed, 2 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 65dcf6301f..fa417b5fa0 100644
--- a/packages/backend/src/server/api/endpoints/i/update.ts
+++ b/packages/backend/src/server/api/endpoints/i/update.ts
@@ -605,7 +605,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const profileUrls = [
this.userEntityService.genLocalUserUri(user.id),
- `${this.config.url}/@${user.username}`,
+ `${this.config.webUrl}/@${user.username}`,
];
const verifiedLinks = await verifyFieldLinks(newFields, profileUrls, this.httpRequestService);
@@ -651,7 +651,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const { window } = new JSDOM(html);
const doc: Document = window.document;
- const myLink = `${this.config.url}/@${user.username}`;
+ const myLink = `${this.config.webUrl}/@${user.username}`;
const aEls = Array.from(doc.getElementsByTagName('a'));
const linkEls = Array.from(doc.getElementsByTagName('link'));