summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/meta.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-03-31 09:15:04 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-03-31 09:15:04 +0900
commit79354f4fafcf2794d4f9aef2fc523d420c088f8c (patch)
treedd1349390fe1ff1f75f213b7108fac3d17f78117 /src/server/api/endpoints/meta.ts
parentRefactoring (diff)
downloadsharkey-79354f4fafcf2794d4f9aef2fc523d420c088f8c.tar.gz
sharkey-79354f4fafcf2794d4f9aef2fc523d420c088f8c.tar.bz2
sharkey-79354f4fafcf2794d4f9aef2fc523d420c088f8c.zip
Refactoring
Diffstat (limited to 'src/server/api/endpoints/meta.ts')
-rw-r--r--src/server/api/endpoints/meta.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts
index 0cb6f75f11..280a6fbae6 100644
--- a/src/server/api/endpoints/meta.ts
+++ b/src/server/api/endpoints/meta.ts
@@ -130,13 +130,7 @@ export default define(meta, async (ps, me) => {
errorImageUrl: instance.errorImageUrl,
iconUrl: instance.iconUrl,
maxNoteTextLength: Math.min(instance.maxNoteTextLength, DB_MAX_NOTE_TEXT_LENGTH),
- emojis: emojis.map(e => ({
- id: e.id,
- aliases: e.aliases,
- name: e.name,
- category: e.category,
- url: e.url,
- })),
+ emojis: await Emojis.packMany(emojis),
requireSetup: (await Users.count({
host: null,
})) === 0,