Add followed tags

This commit is contained in:
Laura Hausmann 2023-07-03 04:24:16 +02:00
parent b069d8201f
commit 8a11b1e152
Signed by: zotan
GPG key ID: D044E84C5BE01605
2 changed files with 12 additions and 0 deletions

View file

@ -603,6 +603,7 @@ export interface MegalodonInterface {
// ======================================
// accounts/tags
// ======================================
getFollowedTags(): Promise<Response<Array<Entity.Tag>>>
/**
* GET /api/v1/tags/:id
*

View file

@ -1047,6 +1047,17 @@ export default class Misskey implements MegalodonInterface {
// ======================================
// accounts/tags
// ======================================
public async getFollowedTags(): Promise<Response<Array<Entity.Tag>>> {
const tags : Entity.Tag[] = [];
const res : Response = {
headers: undefined,
statusText: "",
status: 200,
data: tags
};
return new Promise(resolve => resolve(res))
}
public async getTag(_id: string): Promise<Response<Entity.Tag>> {
return new Promise((_, reject) => {
const err = new NoImplementedError('misskey does not support')