stage3: add image uploads

This commit is contained in:
James Xylight committed 2025-09-04 18:45:36 -07:00
1 parent f177fab454
commit a9fff5c9e8
11 files changed
+124 -57

No files matched your search

+6 -2
View File
@@ -1,7 +1,6 @@
import { LemmyHttp } from 'lemmy-js-client'
import type { BaseClient } from '../base'
import type { BaseClient, ClientType } from '../base'
import { fromGetPosts, toListingType } from './rewrite'
import type { ClientType } from '../lemmy.svelte'
export class LemmyClient implements BaseClient {
type: ClientType = { name: 'lemmy', baseUrl: '/api/v3' }
@@ -472,4 +471,9 @@ export class LemmyClient implements BaseClient {
): ReturnType<BaseClient['blockInstance']> {
return await this.#client.blockInstance(...params)
}
async uploadImage(
...params: Parameters<BaseClient['uploadImage']>
): ReturnType<BaseClient['uploadImage']> {
return await this.#client.uploadImage(...params)
}
}