feat: add piefed metadata generation
This commit is contained in:
9 files changed
+327
-60
No files matched your search
@@ -488,8 +488,14 @@ export class PiefedClient implements BaseClient {
|
||||
async listPostReports(): ReturnType<BaseClient['listPostReports']> {
|
||||
throw new Error('unsupported')
|
||||
}
|
||||
async getSiteMetadata(): ReturnType<BaseClient['getSiteMetadata']> {
|
||||
throw new Error('unsupported')
|
||||
async getSiteMetadata(
|
||||
params: Parameters<BaseClient['getSiteMetadata']>[0],
|
||||
): ReturnType<BaseClient['getSiteMetadata']> {
|
||||
return (
|
||||
await this.#client.GET('/api/alpha/post/site_metadata', {
|
||||
params: { query: params },
|
||||
})
|
||||
).data!
|
||||
}
|
||||
|
||||
async createComment(
|
||||
|
||||
Reference in new issue
Block a user