mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-17 06:59:01 +01:00
80b5fda292
* Remote custom emojis * んほおおおおお
14 lines
388 B
TypeScript
14 lines
388 B
TypeScript
import { IEmoji } from '../../../models/emoji';
|
|
import config from '../../../config';
|
|
|
|
export default (emoji: IEmoji) => ({
|
|
id: `${config.url}/emojis/${emoji.name}`,
|
|
type: 'Emoji',
|
|
name: `:${emoji.name}:`,
|
|
updated: emoji.updatedAt != null ? emoji.updatedAt.toISOString() : new Date().toISOString,
|
|
icon: {
|
|
type: 'Image',
|
|
mediaType: 'image/png', //Mei-TODO
|
|
url: emoji.url
|
|
}
|
|
});
|