From 93d79646de1f29ada36f64b6d6d9dfa4db4d4650 Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 24 Nov 2023 13:56:53 +0100 Subject: [PATCH] Fix api url --- modules/forgefed/star_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/forgefed/star_test.go b/modules/forgefed/star_test.go index 549f40795d..3c4273bf75 100644 --- a/modules/forgefed/star_test.go +++ b/modules/forgefed/star_test.go @@ -26,9 +26,9 @@ func Test_StarMarshalJSON(t *testing.T) { item: Star{ Source: "forgejo", Activity: ap.Activity{ - Actor: ap.IRI("https://repo.prod.meissa.de/api/activitypub/user-id/1"), + Actor: ap.IRI("https://repo.prod.meissa.de/api/v1/activitypub/user-id/1"), Type: "Star", - Object: ap.IRI("https://codeberg.org/api/activitypub/repository-id/1"), + Object: ap.IRI("https://codeberg.org/api/v1/activitypub/repository-id/1"), }, }, want: []byte(`{"source":"forgejo","type":"Star","actor":"https://repo.prod.meissa.de/api/activitypub/user-id/1","object":"https://codeberg.org/api/activitypub/repository-id/1"}`),