v12 (#5712)
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com> Co-authored-by: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>
This commit is contained in:
parent
a5955c1123
commit
f6154dc0af
871 changed files with 26140 additions and 71950 deletions
|
|
@ -13,16 +13,9 @@ export const meta = {
|
|||
tags: ['admin'],
|
||||
|
||||
requireCredential: true,
|
||||
requireModerator: true,
|
||||
requireAdmin: true,
|
||||
|
||||
params: {
|
||||
announcements: {
|
||||
validator: $.optional.nullable.arr($.obj()),
|
||||
desc: {
|
||||
'ja-JP': 'お知らせ'
|
||||
}
|
||||
},
|
||||
|
||||
disableRegistration: {
|
||||
validator: $.optional.nullable.bool,
|
||||
desc: {
|
||||
|
|
@ -44,13 +37,6 @@ export const meta = {
|
|||
}
|
||||
},
|
||||
|
||||
enableEmojiReaction: {
|
||||
validator: $.optional.nullable.bool,
|
||||
desc: {
|
||||
'ja-JP': '絵文字リアクションを有効にするか否か'
|
||||
}
|
||||
},
|
||||
|
||||
useStarForReactionFallback: {
|
||||
validator: $.optional.nullable.bool,
|
||||
desc: {
|
||||
|
|
@ -347,7 +333,7 @@ export const meta = {
|
|||
}
|
||||
},
|
||||
|
||||
ToSUrl: {
|
||||
tosUrl: {
|
||||
validator: $.optional.nullable.str,
|
||||
desc: {
|
||||
'ja-JP': '利用規約のURL'
|
||||
|
|
@ -413,10 +399,6 @@ export const meta = {
|
|||
export default define(meta, async (ps, me) => {
|
||||
const set = {} as Partial<Meta>;
|
||||
|
||||
if (ps.announcements) {
|
||||
set.announcements = ps.announcements;
|
||||
}
|
||||
|
||||
if (typeof ps.disableRegistration === 'boolean') {
|
||||
set.disableRegistration = ps.disableRegistration;
|
||||
}
|
||||
|
|
@ -429,10 +411,6 @@ export default define(meta, async (ps, me) => {
|
|||
set.disableGlobalTimeline = ps.disableGlobalTimeline;
|
||||
}
|
||||
|
||||
if (typeof ps.enableEmojiReaction === 'boolean') {
|
||||
set.enableEmojiReaction = ps.enableEmojiReaction;
|
||||
}
|
||||
|
||||
if (typeof ps.useStarForReactionFallback === 'boolean') {
|
||||
set.useStarForReactionFallback = ps.useStarForReactionFallback;
|
||||
}
|
||||
|
|
@ -601,8 +579,8 @@ export default define(meta, async (ps, me) => {
|
|||
set.swPrivateKey = ps.swPrivateKey;
|
||||
}
|
||||
|
||||
if (ps.ToSUrl !== undefined) {
|
||||
set.ToSUrl = ps.ToSUrl;
|
||||
if (ps.tosUrl !== undefined) {
|
||||
set.ToSUrl = ps.tosUrl;
|
||||
}
|
||||
|
||||
if (ps.repositoryUrl !== undefined) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue