mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	upd: get alt and blurhash on media
This commit is contained in:
		
							parent
							
								
									62b2c31655
								
							
						
					
					
						commit
						c10f785614
					
				
					 3 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -2178,7 +2178,7 @@ export default class Misskey implements MegalodonInterface {
 | 
			
		|||
  public async getInstanceCustomEmojis(): Promise<Response<Array<Entity.Emoji>>> {
 | 
			
		||||
    return this.client
 | 
			
		||||
      .get<{ emojis: Array<MisskeyAPI.Entity.Emoji> }>('/api/emojis')
 | 
			
		||||
      .then(res => ({ ...res, data:  res.data.emojis && res.data.emojis.length > 0 ? res.data.emojis.map(e => MisskeyAPI.Converter.emoji(e)) : [] }))
 | 
			
		||||
      .then(res => ({ ...res, data: res.data.emojis.map(e => MisskeyAPI.Converter.emoji(e)) }))
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // ======================================
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -204,8 +204,8 @@ namespace MisskeyAPI {
 | 
			
		|||
          width: f.properties.width,
 | 
			
		||||
          height: f.properties.height
 | 
			
		||||
        },
 | 
			
		||||
        description: null,
 | 
			
		||||
        blurhash: null
 | 
			
		||||
        description: f.comment ? f.comment : null,
 | 
			
		||||
        blurhash: f.blurhash ? f.blurhash : null
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,6 +13,8 @@ namespace MisskeyEntity {
 | 
			
		|||
      avgColor: string
 | 
			
		||||
    }
 | 
			
		||||
    url: string
 | 
			
		||||
    comment?: string
 | 
			
		||||
    blurhash?: string
 | 
			
		||||
    thumbnailUrl: string
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue