This commit is contained in:
syuilo 2018-11-02 23:23:01 +09:00
parent f2e719b361
commit 20df002746
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -2,6 +2,7 @@ import $ from 'cafy';
import * as os from 'os'; import * as os from 'os';
import config from '../../../config'; import config from '../../../config';
import Meta from '../../../models/meta'; import Meta from '../../../models/meta';
import Emoji from '../../../models/emoji';
import define from '../define'; import define from '../define';
const pkg = require('../../../../package.json'); const pkg = require('../../../../package.json');
@ -28,6 +29,8 @@ export const meta = {
export default define(meta, (ps, me) => new Promise(async (res, rej) => { export default define(meta, (ps, me) => new Promise(async (res, rej) => {
const met: any = (await Meta.findOne()) || {}; const met: any = (await Meta.findOne()) || {};
const emojis = await Emoji.find({ host: null });
res({ res({
maintainer: config.maintainer, maintainer: config.maintainer,
@ -57,6 +60,8 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => {
bannerUrl: met.bannerUrl, bannerUrl: met.bannerUrl,
maxNoteTextLength: config.maxNoteTextLength, maxNoteTextLength: config.maxNoteTextLength,
emojis: emojis,
features: ps.detail ? { features: ps.detail ? {
registration: !met.disableRegistration, registration: !met.disableRegistration,
localTimeLine: !met.disableLocalTimeline, localTimeLine: !met.disableLocalTimeline,