PostResponse,
SearchResponse,
FollowCommunity,
- FollowCommunityResponse,
CommunityResponse,
GetPostResponse,
Register,
api: API,
person_id: number,
ban: boolean,
- remove_data: boolean
+ remove_data: boolean,
): Promise<BanPersonResponse> {
// Make sure lemmy-beta/c/main is cached on lemmy_alpha
let form: BanPerson = {
api: API,
follow: boolean,
community_id: number
-): Promise<FollowCommunityResponse> {
+): Promise<CommunityResponse> {
let form: FollowCommunity = {
community_id,
follow,
}
export async function deleteUser(
- api: API
+ api: API,
): Promise<DeleteAccountResponse> {
let form: DeleteAccount = {
auth: api.auth,
return siteRes;
}
-export async function followBeta(api: API): Promise<FollowCommunityResponse> {
+export async function followBeta(api: API): Promise<CommunityResponse> {
let betaCommunity = (await resolveBetaCommunity(api)).community;
if (betaCommunity) {
let follow = await followCommunity(api, true, betaCommunity.community.id);
export async function reportPost(
api: API,
post_id: number,
- reason: string
+ reason: string,
): Promise<PostReportResponse> {
let form: CreatePostReport = {
post_id,
export async function reportComment(
api: API,
comment_id: number,
- reason: string
+ reason: string,
): Promise<CommentReportResponse> {
let form: CreateCommentReport = {
comment_id,