0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 23:33:15 -05:00

Fix api url

This commit is contained in:
erik 2023-11-24 13:56:53 +01:00 committed by Michael Jerger
parent 9568eab62a
commit 93d79646de

View file

@ -26,9 +26,9 @@ func Test_StarMarshalJSON(t *testing.T) {
item: Star{ item: Star{
Source: "forgejo", Source: "forgejo",
Activity: ap.Activity{ 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", 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"}`), 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"}`),