Fixed 267U.pre2
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import config from "../../../config/index.js";
|
||||
export default ((emoji)=>({
|
||||
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: emoji.glyph ? "image/svg+xml" : emoji.type || "image/png",
|
||||
url: emoji.glyph ? emoji.originalUrl : emoji.publicUrl || emoji.originalUrl
|
||||
}
|
||||
}));
|
||||
Reference in New Issue
Block a user