mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	upd: return empty tags on featured_tags call
This commit is contained in:
		
							parent
							
								
									871407ce53
								
							
						
					
					
						commit
						c2d1564851
					
				
					 1 changed files with 8 additions and 4 deletions
				
			
		| 
						 | 
					@ -931,10 +931,14 @@ export default class Misskey implements MegalodonInterface {
 | 
				
			||||||
  // accounts/featured_tags
 | 
					  // accounts/featured_tags
 | 
				
			||||||
  // ======================================
 | 
					  // ======================================
 | 
				
			||||||
  public async getFeaturedTags(): Promise<Response<Array<Entity.FeaturedTag>>> {
 | 
					  public async getFeaturedTags(): Promise<Response<Array<Entity.FeaturedTag>>> {
 | 
				
			||||||
    return new Promise((_, reject) => {
 | 
					    const tags: Entity.FeaturedTag[] = [];
 | 
				
			||||||
      const err = new NoImplementedError('misskey does not support')
 | 
							const res: Response = {
 | 
				
			||||||
      reject(err)
 | 
								headers: undefined,
 | 
				
			||||||
    })
 | 
								statusText: "",
 | 
				
			||||||
 | 
								status: 200,
 | 
				
			||||||
 | 
								data: tags,
 | 
				
			||||||
 | 
							};
 | 
				
			||||||
 | 
							return new Promise((resolve) => resolve(res));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  public async createFeaturedTag(_name: string): Promise<Response<Entity.FeaturedTag>> {
 | 
					  public async createFeaturedTag(_name: string): Promise<Response<Entity.FeaturedTag>> {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue