Add followed tags
This commit is contained in:
parent
b069d8201f
commit
8a11b1e152
|
@ -603,6 +603,7 @@ export interface MegalodonInterface {
|
|||
// ======================================
|
||||
// accounts/tags
|
||||
// ======================================
|
||||
getFollowedTags(): Promise<Response<Array<Entity.Tag>>>
|
||||
/**
|
||||
* GET /api/v1/tags/:id
|
||||
*
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue