From 438a39d3ad9cc217680b45fbaa61a6a21c163652 Mon Sep 17 00:00:00 2001 From: Amelia <47868520+knotteye@users.noreply.github.com> Date: Tue, 12 Oct 2021 01:14:11 +0000 Subject: Trim strings before firing getactor requests --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 157ed78..4f20ad7 100644 --- a/main.go +++ b/main.go @@ -1875,7 +1875,7 @@ func GetActor(id string) Actor { if ActorCache[actor+"@"+instance].Id != "" { respActor = ActorCache[actor+"@"+instance] } else { - req, err := http.NewRequest("GET", id, nil) + req, err := http.NewRequest("GET", strings.TrimSpace(id), nil) CheckError(err, "error with getting actor req") -- cgit v1.2.3