Sharkey/src/models/meta.ts
syuilo c21caad1c5
Custom emoji (#3061)
* wip

* wip

* wip
2018-11-01 11:51:49 +09:00

38 lines
602 B
TypeScript

import db from '../db/mongodb';
const Meta = db.get<IMeta>('meta');
export default Meta;
export type IMeta = {
broadcasts?: any[];
stats?: {
notesCount: number;
originalNotesCount: number;
usersCount: number;
originalUsersCount: number;
};
disableRegistration?: boolean;
disableLocalTimeline?: boolean;
hidedTags?: string[];
bannerUrl?: string;
/**
* カスタム絵文字定義
*/
emojis?: {
/**
* 絵文字名 (例: thinking_ai)
*/
name: string;
/**
* エイリアス
*/
aliases?: string[];
/**
* 絵文字画像のURL
*/
url: string;
}[];
};