mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-04 18:21:12 +00:00
add MarkManyPostsAsRead
This commit is contained in:
parent
2df892a974
commit
c287daa2e6
1 changed files with 15 additions and 0 deletions
15
src/http.ts
15
src/http.ts
|
@ -5,6 +5,7 @@ import { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
|
|||
import { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
|
||||
import { BanFromCommunity } from "./types/BanFromCommunity";
|
||||
import { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
|
||||
import { MarkManyPostsAsRead } from "./types/MarkManyPostsAsRead";
|
||||
import { BanPerson } from "./types/BanPerson";
|
||||
import { BanPersonResponse } from "./types/BanPersonResponse";
|
||||
import { BannedPersonsResponse } from "./types/BannedPersonsResponse";
|
||||
|
@ -733,6 +734,20 @@ export class LemmyHttp {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark multiple posts as read.
|
||||
*
|
||||
* `HTTP.POST /post/mark_as_read/many`
|
||||
*/
|
||||
markManyPostAsRead(form: MarkManyPostsAsRead, options?: RequestOptions) {
|
||||
return this.#wrapper<MarkManyPostsAsRead, SuccessResponse>(
|
||||
HttpType.Post,
|
||||
"/post/mark_as_read/many",
|
||||
form,
|
||||
options,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide a post from list views.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue