summaryrefslogtreecommitdiff
path: root/packages/backend/test/unit/activitypub.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 18:39:22 -0500
commit24734d408700a72d45c3ff4a679606cab3ec544f (patch)
treed0fee0bcf508f3c631f7c26724bb5cd94dfc88a0 /packages/backend/test/unit/activitypub.ts
parentmerge: Release/2025.4.5 (!1258) (diff)
downloadsharkey-24734d408700a72d45c3ff4a679606cab3ec544f.tar.gz
sharkey-24734d408700a72d45c3ff4a679606cab3ec544f.tar.bz2
sharkey-24734d408700a72d45c3ff4a679606cab3ec544f.zip
split url into webUrl and localUrl (like mastodon)stable
Diffstat (limited to 'packages/backend/test/unit/activitypub.ts')
-rw-r--r--packages/backend/test/unit/activitypub.ts16
1 files changed, 8 insertions, 8 deletions
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 () => {