add MarkManyPostsAsRead

This commit is contained in:
Felix Ableitner 2024-12-02 11:24:01 +01:00
parent 2df892a974
commit c287daa2e6

View file

@ -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.
*