From d52bb4bf8fc564d99baa1e9f3ee966691bf800f3 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 15 Nov 2023 12:31:16 +0100 Subject: [PATCH] Remove newline from error string --- routers/api/v1/activitypub/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index 2568156a84..e1b610ce82 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -123,7 +123,7 @@ func parseActor(actor string) (ActorData, error) { } if !strings.Contains(u.Path, "api/v1/activitypub/user-id") { - return ActorData{}, fmt.Errorf("the Path to the API was invalid: %v\n the full URL is: %v\n", u.Path, actor) + return ActorData{}, fmt.Errorf("the Path to the API was invalid: %v\n the full URL is: %v", u.Path, actor) } pathWithUserID := strings.Split(u.Path, "/")