@ -17,6 +17,12 @@ export const meta = {
|
||||
}
|
||||
}),
|
||||
|
||||
emojis: $.arr($.obj()).optional.note({
|
||||
desc: {
|
||||
'ja-JP': 'カスタム絵文字定義'
|
||||
}
|
||||
}),
|
||||
|
||||
disableRegistration: $.bool.optional.nullable.note({
|
||||
desc: {
|
||||
'ja-JP': '招待制か否か'
|
||||
@ -53,6 +59,10 @@ export default (params: any) => new Promise(async (res, rej) => {
|
||||
set.broadcasts = ps.broadcasts;
|
||||
}
|
||||
|
||||
if (ps.emojis) {
|
||||
set.emojis = ps.emojis;
|
||||
}
|
||||
|
||||
if (typeof ps.disableRegistration === 'boolean') {
|
||||
set.disableRegistration = ps.disableRegistration;
|
||||
}
|
||||
|
@ -50,6 +50,7 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
|
||||
hidedTags: (me && me.isAdmin) ? meta.hidedTags : undefined,
|
||||
bannerUrl: meta.bannerUrl,
|
||||
maxNoteTextLength: config.maxNoteTextLength,
|
||||
emojis: meta.emojis,
|
||||
|
||||
features: {
|
||||
registration: !meta.disableRegistration,
|
||||
|
Reference in New Issue
Block a user