From 0e29f1f5bb68a48d9b837d7f4e0a16370734955b Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 9 May 2023 12:16:10 +0200 Subject: [feature] Enable federation in/out of profile PropertyValue fields (#1722) Co-authored-by: kim Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> --- internal/api/activitypub/users/inboxpost_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'internal/api/activitypub/users/inboxpost_test.go') diff --git a/internal/api/activitypub/users/inboxpost_test.go b/internal/api/activitypub/users/inboxpost_test.go index 129563532..26c4029a2 100644 --- a/internal/api/activitypub/users/inboxpost_test.go +++ b/internal/api/activitypub/users/inboxpost_test.go @@ -32,6 +32,7 @@ import ( "github.com/superseriousbusiness/activity/pub" "github.com/superseriousbusiness/activity/streams" "github.com/superseriousbusiness/activity/streams/vocab" + "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" @@ -76,7 +77,7 @@ func (suite *InboxPostTestSuite) TestPostBlock() { targetURI := testrig.URLMustParse(blockedAccount.InboxURI) signature, digestHeader, dateHeader := testrig.GetSignatureForActivity(block, blockingAccount.PublicKeyURI, blockingAccount.PrivateKey, targetURI) - bodyI, err := streams.Serialize(block) + bodyI, err := ap.Serialize(block) suite.NoError(err) bodyJson, err := json.Marshal(bodyI) @@ -177,7 +178,7 @@ func (suite *InboxPostTestSuite) TestPostUnblock() { targetURI := testrig.URLMustParse(blockedAccount.InboxURI) signature, digestHeader, dateHeader := testrig.GetSignatureForActivity(undo, blockingAccount.PublicKeyURI, blockingAccount.PrivateKey, targetURI) - bodyI, err := streams.Serialize(undo) + bodyI, err := ap.Serialize(undo) suite.NoError(err) bodyJson, err := json.Marshal(bodyI) @@ -275,7 +276,7 @@ func (suite *InboxPostTestSuite) TestPostUpdate() { targetURI := testrig.URLMustParse(receivingAccount.InboxURI) signature, digestHeader, dateHeader := testrig.GetSignatureForActivity(update, updatedAccount.PublicKeyURI, updatedAccount.PrivateKey, targetURI) - bodyI, err := streams.Serialize(update) + bodyI, err := ap.Serialize(update) suite.NoError(err) bodyJson, err := json.Marshal(bodyI) @@ -412,7 +413,7 @@ func (suite *InboxPostTestSuite) TestPostDelete() { targetURI := testrig.URLMustParse(receivingAccount.InboxURI) signature, digestHeader, dateHeader := testrig.GetSignatureForActivity(delete, deletedAccount.PublicKeyURI, deletedAccount.PrivateKey, targetURI) - bodyI, err := streams.Serialize(delete) + bodyI, err := ap.Serialize(delete) suite.NoError(err) bodyJson, err := json.Marshal(bodyI) -- cgit v1.2.3