From ddac71b8cd8586c0474787273126a071a92b5214 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sun, 20 Nov 2022 22:51:44 +0100 Subject: [PATCH] missing slash --- accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts.go b/accounts.go index 50746fe..730e7c8 100644 --- a/accounts.go +++ b/accounts.go @@ -57,7 +57,7 @@ type AccountSource struct { func LookupAccount(username string) (*Account, error) { var account Account - err := doAPI(http.MethodGet, fmt.Sprintf("api/v1/accounts/lookup?acct=%s", url.QueryEscape(username)), nil, &account, nil) + err := doAPI(http.MethodGet, fmt.Sprintf("/api/v1/accounts/lookup?acct=%s", url.QueryEscape(username)), nil, &account, nil) if err != nil { return nil, err }