From d69f8f5412e6dc879beea473f88ed5038e716122 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Mon, 2 Dec 2024 13:01:31 +0100 Subject: [PATCH] fix(client): :bug: Use correct HTTP path for account lookups --- client/versia/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/versia/client.ts b/client/versia/client.ts index 8e0a206..2255e39 100644 --- a/client/versia/client.ts +++ b/client/versia/client.ts @@ -1972,9 +1972,9 @@ export class Client extends BaseClient { ): Promise> { const params = new URLSearchParams(); - params.set("q", acct); + params.set("acct", acct); - return this.get(`/api/v1/accounts/search?${params}`, extra); + return this.get(`/api/v1/accounts/lookup?${params}`, extra); } /**