From 0b2f0d2d74452e4aba21723014979b8b2add872b Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 2 Nov 2018 23:23:01 +0900 Subject: [PATCH] :pizza: --- src/server/api/endpoints/meta.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index a858bc056..0a75c50e6 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -2,6 +2,7 @@ import $ from 'cafy'; import * as os from 'os'; import config from '../../../config'; import Meta from '../../../models/meta'; +import Emoji from '../../../models/emoji'; import define from '../define'; const pkg = require('../../../../package.json'); @@ -28,6 +29,8 @@ export const meta = { export default define(meta, (ps, me) => new Promise(async (res, rej) => { const met: any = (await Meta.findOne()) || {}; + const emojis = await Emoji.find({ host: null }); + res({ maintainer: config.maintainer, @@ -57,6 +60,8 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { bannerUrl: met.bannerUrl, maxNoteTextLength: config.maxNoteTextLength, + emojis: emojis, + features: ps.detail ? { registration: !met.disableRegistration, localTimeLine: !met.disableLocalTimeline,