統計で無視するハッシュタグを設定できるように
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
import * as os from 'os';
|
||||
import config from '../../../config';
|
||||
import Meta from '../../../models/meta';
|
||||
import { ILocalUser } from '../../../models/user';
|
||||
|
||||
const pkg = require('../../../../package.json');
|
||||
const client = require('../../../../built/client/meta.json');
|
||||
@ -11,7 +12,7 @@ const client = require('../../../../built/client/meta.json');
|
||||
/**
|
||||
* Show core info
|
||||
*/
|
||||
export default () => new Promise(async (res, rej) => {
|
||||
export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => {
|
||||
const meta: any = (await Meta.findOne()) || {};
|
||||
|
||||
res({
|
||||
@ -35,6 +36,7 @@ export default () => new Promise(async (res, rej) => {
|
||||
disableRegistration: meta.disableRegistration,
|
||||
driveCapacityPerLocalUserMb: config.localDriveCapacityMb,
|
||||
recaptchaSitekey: config.recaptcha ? config.recaptcha.site_key : null,
|
||||
swPublickey: config.sw ? config.sw.public_key : null
|
||||
swPublickey: config.sw ? config.sw.public_key : null,
|
||||
hidedTags: (me && me.isAdmin) ? meta.hidedTags : undefined
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user