Merge branch 'main' into custom-fetchinator

This commit is contained in:
SleeplessOne1917 2023-06-15 15:50:20 +00:00 committed by GitHub
commit 6e1c4162d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,7 +162,7 @@ export class LemmyHttp {
headers?: { [key: string]: string }; headers?: { [key: string]: string };
} }
) { ) {
this.#apiUrl = `${baseUrl}/api/${VERSION}`; this.#apiUrl = `${baseUrl.replace(/\/+$/, "")}/api/${VERSION}`;
this.#pictrsUrl = `${baseUrl}/pictrs/image`; this.#pictrsUrl = `${baseUrl}/pictrs/image`;
if (options?.headers) { if (options?.headers) {