From 24734d408700a72d45c3ff4a679606cab3ec544f Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 2 Mar 2026 16:05:12 -0500 Subject: split url into webUrl and localUrl (like mastodon) --- packages/backend/test/unit/activitypub.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'packages/backend/test/unit/activitypub.ts') diff --git a/packages/backend/test/unit/activitypub.ts b/packages/backend/test/unit/activitypub.ts index ff93e1be07..8575159606 100644 --- a/packages/backend/test/unit/activitypub.ts +++ b/packages/backend/test/unit/activitypub.ts @@ -713,13 +713,13 @@ describe('ActivityPub', () => { it('should include id', async () => { const collection = await rendererService.renderRepliesCollection(note.id); - expect(collection.id).toBe(`${config.url}/notes/${note.id}/replies`); + expect(collection.id).toBe(`${config.webUrl}/notes/${note.id}/replies`); }); it('should include first', async () => { const collection = await rendererService.renderRepliesCollection(note.id); - expect(collection.first).toBe(`${config.url}/notes/${note.id}/replies?page=true`); + expect(collection.first).toBe(`${config.webUrl}/notes/${note.id}/replies?page=true`); }); it('should include totalItems', async () => { @@ -740,19 +740,19 @@ describe('ActivityPub', () => { it('should include id', async () => { const collection = await rendererService.renderRepliesCollectionPage(note.id, 'abc123'); - expect(collection.id).toBe(`${config.url}/notes/${note.id}/replies?page=true&until_id=abc123`); + expect(collection.id).toBe(`${config.webUrl}/notes/${note.id}/replies?page=true&until_id=abc123`); }); it('should include partOf', async () => { const collection = await rendererService.renderRepliesCollectionPage(note.id, 'abc123'); - expect(collection.partOf).toBe(`${config.url}/notes/${note.id}/replies`); + expect(collection.partOf).toBe(`${config.webUrl}/notes/${note.id}/replies`); }); it('should include first', async () => { const collection = await rendererService.renderRepliesCollectionPage(note.id, 'abc123'); - expect(collection.first).toBe(`${config.url}/notes/${note.id}/replies?page=true`); + expect(collection.first).toBe(`${config.webUrl}/notes/${note.id}/replies?page=true`); }); it('should include totalItems', async () => { @@ -778,19 +778,19 @@ describe('ActivityPub', () => { it('should include id', async () => { const collection = await rendererService.renderRepliesCollectionPage(note.id, undefined); - expect(collection.id).toBe(`${config.url}/notes/${note.id}/replies?page=true`); + expect(collection.id).toBe(`${config.webUrl}/notes/${note.id}/replies?page=true`); }); it('should include partOf', async () => { const collection = await rendererService.renderRepliesCollectionPage(note.id, undefined); - expect(collection.partOf).toBe(`${config.url}/notes/${note.id}/replies`); + expect(collection.partOf).toBe(`${config.webUrl}/notes/${note.id}/replies`); }); it('should include first', async () => { const collection = await rendererService.renderRepliesCollectionPage(note.id, undefined); - expect(collection.first).toBe(`${config.url}/notes/${note.id}/replies?page=true`); + expect(collection.first).toBe(`${config.webUrl}/notes/${note.id}/replies?page=true`); }); it('should include totalItems', async () => { -- cgit v1.2.3-freya