diff --git a/src/http.ts b/src/http.ts index 50f0b09..0efc481 100644 --- a/src/http.ts +++ b/src/http.ts @@ -54,7 +54,6 @@ import { GetSiteConfig, GetSiteConfigResponse, GetSiteResponse, - ListCategoriesResponse, SaveSiteConfig, Search, SearchResponse, @@ -140,10 +139,6 @@ export class LemmyHttp { return this.wrapper(HttpType.Put, '/site/config', form); } - async listCategories(): Promise { - return this.wrapper(HttpType.Get, '/categories', {}); - } - async getModlog(form: GetModlog): Promise { return this.wrapper(HttpType.Get, '/modlog', form); } diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index c16c6eb..e0de844 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -23,7 +23,6 @@ export interface CreateCommunity { description?: string; icon?: string; banner?: string; - category_id: number; nsfw: boolean; auth: string; } @@ -79,7 +78,6 @@ export interface EditCommunity { description?: string; icon?: string; banner?: string; - category_id: number; nsfw: boolean; auth: string; } diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index 764993b..bf0e654 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -1,4 +1,4 @@ -import { Category, UserSafeSettings } from '../source'; +import { UserSafeSettings } from '../source'; import { CommentView, CommunityView, @@ -16,12 +16,6 @@ import { UserViewSafe, } from '../views'; -export interface ListCategories {} - -export interface ListCategoriesResponse { - categories: Category[]; -} - /** * Search types are `All, Comments, Posts, Communities, Users, Url` */ diff --git a/src/interfaces/others.ts b/src/interfaces/others.ts index 03b7f3d..8cf0992 100644 --- a/src/interfaces/others.ts +++ b/src/interfaces/others.ts @@ -8,7 +8,6 @@ export enum UserOperation { CreateCommunity, CreatePost, ListCommunities, - ListCategories, GetPost, GetCommunity, CreateComment, diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 48a4b77..8d50f76 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -198,7 +198,6 @@ export interface CommunitySafe { name: string; title: string; description?: string; - category_id: number; creator_id: number; removed: boolean; published: string; @@ -238,11 +237,6 @@ export interface Comment { local: boolean; } -export interface Category { - id: number; - name: string; -} - export interface UserMention { id: number; recipient_id: number; diff --git a/src/interfaces/views.ts b/src/interfaces/views.ts index 4dd81dc..f45da9e 100644 --- a/src/interfaces/views.ts +++ b/src/interfaces/views.ts @@ -6,7 +6,6 @@ import { UserAggregates, } from './aggregates'; import { - Category, Comment, CommentReport, CommunitySafe, @@ -182,7 +181,6 @@ export interface CommunityUserBanView { export interface CommunityView { community: CommunitySafe; creator: UserSafe; - category: Category; subscribed: boolean; counts: CommunityAggregates; } diff --git a/src/websocket.ts b/src/websocket.ts index 1943351..ffc215a 100644 --- a/src/websocket.ts +++ b/src/websocket.ts @@ -124,10 +124,6 @@ export class LemmyWebsocket { return wrapper(UserOperation.GetFollowedCommunities, form); } - listCategories() { - return wrapper(UserOperation.ListCategories, {}); - } - createPost(form: CreatePost) { return wrapper(UserOperation.CreatePost, form); }