upd: return empty tags on featured_tags call

This commit is contained in:
Mar0xy 2023-09-25 04:57:32 +02:00
parent 871407ce53
commit c2d1564851
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828

View File

@ -931,10 +931,14 @@ export default class Misskey implements MegalodonInterface {
// accounts/featured_tags
// ======================================
public async getFeaturedTags(): Promise<Response<Array<Entity.FeaturedTag>>> {
return new Promise((_, reject) => {
const err = new NoImplementedError('misskey does not support')
reject(err)
})
const tags: Entity.FeaturedTag[] = [];
const res: Response = {
headers: undefined,
statusText: "",
status: 200,
data: tags,
};
return new Promise((resolve) => resolve(res));
}
public async createFeaturedTag(_name: string): Promise<Response<Entity.FeaturedTag>> {