mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 20:43:09 +02:00
🍕
This commit is contained in:
parent
f2e719b361
commit
20df002746
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue