mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-27 00:13:03 +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>>> {
|
public async getInstanceCustomEmojis(): Promise<Response<Array<Entity.Emoji>>> {
|
||||||
return this.client
|
return this.client
|
||||||
.get<{ emojis: Array<MisskeyAPI.Entity.Emoji> }>('/api/emojis')
|
.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,
|
width: f.properties.width,
|
||||||
height: f.properties.height
|
height: f.properties.height
|
||||||
},
|
},
|
||||||
description: null,
|
description: f.comment ? f.comment : null,
|
||||||
blurhash: null
|
blurhash: f.blurhash ? f.blurhash : null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,8 @@ namespace MisskeyEntity {
|
||||||
avgColor: string
|
avgColor: string
|
||||||
}
|
}
|
||||||
url: string
|
url: string
|
||||||
|
comment?: string
|
||||||
|
blurhash?: string
|
||||||
thumbnailUrl: string
|
thumbnailUrl: string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue