aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmelia <47868520+knotteye@users.noreply.github.com>2021-10-12 01:14:11 +0000
committerFChannel <>2022-06-19 12:53:29 -0700
commit438a39d3ad9cc217680b45fbaa61a6a21c163652 (patch)
treed8ce740b79e660545c85327aa38398a470fb3152
parent0697042847041f61249886ab50f9b7f265591aed (diff)
Trim strings before firing getactor requests
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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")