diff --git a/src/http.ts b/src/http.ts index 7445a38..e51e2a2 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1547,7 +1547,7 @@ export class LemmyHttp { function encodeGetParams(p: BodyType): string { return Object.entries(p) - .filter(kv => !!kv[1]) + .filter(kv => kv[1] !== undefined && kv[1] !== null) .map(kv => kv.map(encodeURIComponent).join("=")) .join("&"); }