From c8a780e12a8112a4d4cbe8ed72d241a382f73903 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 11 Apr 2025 16:36:40 +0200 Subject: [bugfix] Fix setting bot on/off (#3986) * [bugfix] Fix setting bot on/off * read client messages in tests * test fix --- internal/typeutils/internaltoas_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/typeutils/internaltoas_test.go') diff --git a/internal/typeutils/internaltoas_test.go b/internal/typeutils/internaltoas_test.go index 0db705ca7..7c05a14b8 100644 --- a/internal/typeutils/internaltoas_test.go +++ b/internal/typeutils/internaltoas_test.go @@ -99,7 +99,7 @@ func (suite *InternalToASTestSuite) TestAccountToASBot() { *testAccount = *suite.testAccounts["local_account_1"] // take zork for this test // Update zork to be a bot. - testAccount.ActorType = gtsmodel.AccountActorTypeService + testAccount.ActorType = gtsmodel.AccountActorTypeApplication if err := suite.state.DB.UpdateAccount(context.Background(), testAccount); err != nil { suite.FailNow(err.Error()) } @@ -155,7 +155,7 @@ func (suite *InternalToASTestSuite) TestAccountToASBot() { "published": "2022-05-20T11:09:18Z", "summary": "\u003cp\u003ehey yo this is my profile!\u003c/p\u003e", "tag": [], - "type": "Service", + "type": "Application", "url": "http://localhost:8080/@the_mighty_zork" }`, string(bytes)) } -- cgit v1.2.3