From d8047452889f29589d0f5a51caae939ec4e5e37f Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 29 Nov 2024 12:04:28 +0100 Subject: [PATCH] move block endpoints --- src/http.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/http.ts b/src/http.ts index c10d768..2cf9317 100644 --- a/src/http.ts +++ b/src/http.ts @@ -540,12 +540,12 @@ export class LemmyHttp { /** * Block a community. * - * `HTTP.POST /community/block` + * `HTTP.POST /account/block/community` */ blockCommunity(form: BlockCommunity, options?: RequestOptions) { return this.#wrapper( HttpType.Post, - "/community/block", + "/account/block/community", form, options, ); @@ -1350,12 +1350,12 @@ export class LemmyHttp { /** * Block a person. * - * `HTTP.POST /user/block` + * `HTTP.POST /account/block/person` */ blockPerson(form: BlockPerson, options?: RequestOptions) { return this.#wrapper( HttpType.Post, - "/user/block", + "/account/block/person", form, options, ); @@ -1818,12 +1818,12 @@ export class LemmyHttp { /** * Block an instance as user. * - * `HTTP.Post /site/block` + * `HTTP.Post /account/block_instance` */ userBlockInstance(form: UserBlockInstanceParams, options?: RequestOptions) { return this.#wrapper( HttpType.Post, - "/site/block", + "/account/block_instance", form, options, ); @@ -1832,12 +1832,12 @@ export class LemmyHttp { /** * Globally block an instance as admin. * - * `HTTP.Post /admin/block_instance` + * `HTTP.Post /admin/block/instance` */ adminBlockInstance(form: AdminBlockInstanceParams, options?: RequestOptions) { return this.#wrapper( HttpType.Post, - "/admin/block_instance", + "/admin/block/instance", form, options, );