summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints/meta.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-03-25 01:50:28 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-03-25 01:50:28 +0900
commitd0a346ed8ab3fd879d0e1d2635df0b77a9b0bc05 (patch)
tree6c4181d1588677cb5db6673539bf3b25e5ba8c57 /packages/backend/src/server/api/endpoints/meta.ts
parentrecognize null in _misskey_content for notes (#8440) (diff)
downloadmisskey-d0a346ed8ab3fd879d0e1d2635df0b77a9b0bc05.tar.gz
misskey-d0a346ed8ab3fd879d0e1d2635df0b77a9b0bc05.tar.bz2
misskey-d0a346ed8ab3fd879d0e1d2635df0b77a9b0bc05.zip
refactor: separate meta api for admin or not
Diffstat (limited to 'packages/backend/src/server/api/endpoints/meta.ts')
-rw-r--r--packages/backend/src/server/api/endpoints/meta.ts184
1 files changed, 0 insertions, 184 deletions
diff --git a/packages/backend/src/server/api/endpoints/meta.ts b/packages/backend/src/server/api/endpoints/meta.ts
index 1aff1f63fb..79f20cf710 100644
--- a/packages/backend/src/server/api/endpoints/meta.ts
+++ b/packages/backend/src/server/api/endpoints/meta.ts
@@ -290,151 +290,6 @@ export const meta = {
},
},
},
- userStarForReactionFallback: {
- type: 'boolean',
- optional: true, nullable: false,
- },
- pinnedUsers: {
- type: 'array',
- optional: true, nullable: false,
- items: {
- type: 'string',
- optional: false, nullable: false,
- },
- },
- hiddenTags: {
- type: 'array',
- optional: true, nullable: false,
- items: {
- type: 'string',
- optional: false, nullable: false,
- },
- },
- blockedHosts: {
- type: 'array',
- optional: true, nullable: false,
- items: {
- type: 'string',
- optional: false, nullable: false,
- },
- },
- hcaptchaSecretKey: {
- type: 'string',
- optional: true, nullable: true,
- },
- recaptchaSecretKey: {
- type: 'string',
- optional: true, nullable: true,
- },
- proxyAccountId: {
- type: 'string',
- optional: true, nullable: true,
- format: 'id',
- },
- twitterConsumerKey: {
- type: 'string',
- optional: true, nullable: true,
- },
- twitterConsumerSecret: {
- type: 'string',
- optional: true, nullable: true,
- },
- githubClientId: {
- type: 'string',
- optional: true, nullable: true,
- },
- githubClientSecret: {
- type: 'string',
- optional: true, nullable: true,
- },
- discordClientId: {
- type: 'string',
- optional: true, nullable: true,
- },
- discordClientSecret: {
- type: 'string',
- optional: true, nullable: true,
- },
- summaryProxy: {
- type: 'string',
- optional: true, nullable: true,
- },
- email: {
- type: 'string',
- optional: true, nullable: true,
- },
- smtpSecure: {
- type: 'boolean',
- optional: true, nullable: false,
- },
- smtpHost: {
- type: 'string',
- optional: true, nullable: true,
- },
- smtpPort: {
- type: 'string',
- optional: true, nullable: true,
- },
- smtpUser: {
- type: 'string',
- optional: true, nullable: true,
- },
- smtpPass: {
- type: 'string',
- optional: true, nullable: true,
- },
- swPrivateKey: {
- type: 'string',
- optional: true, nullable: true,
- },
- useObjectStorage: {
- type: 'boolean',
- optional: true, nullable: false,
- },
- objectStorageBaseUrl: {
- type: 'string',
- optional: true, nullable: true,
- },
- objectStorageBucket: {
- type: 'string',
- optional: true, nullable: true,
- },
- objectStoragePrefix: {
- type: 'string',
- optional: true, nullable: true,
- },
- objectStorageEndpoint: {
- type: 'string',
- optional: true, nullable: true,
- },
- objectStorageRegion: {
- type: 'string',
- optional: true, nullable: true,
- },
- objectStoragePort: {
- type: 'number',
- optional: true, nullable: true,
- },
- objectStorageAccessKey: {
- type: 'string',
- optional: true, nullable: true,
- },
- objectStorageSecretKey: {
- type: 'string',
- optional: true, nullable: true,
- },
- objectStorageUseSSL: {
- type: 'boolean',
- optional: true, nullable: false,
- },
- objectStorageUseProxy: {
- type: 'boolean',
- optional: true, nullable: false,
- },
- objectStorageSetPublicRead: {
- type: 'boolean',
- optional: true, nullable: false,
- },
},
},
} as const;
@@ -552,45 +407,6 @@ export default define(meta, paramDef, async (ps, me) => {
serviceWorker: instance.enableServiceWorker,
miauth: true,
};
-
- if (me && me.isAdmin) {
- response.useStarForReactionFallback = instance.useStarForReactionFallback;
- response.pinnedUsers = instance.pinnedUsers;
- response.hiddenTags = instance.hiddenTags;
- response.blockedHosts = instance.blockedHosts;
- response.hcaptchaSecretKey = instance.hcaptchaSecretKey;
- response.recaptchaSecretKey = instance.recaptchaSecretKey;
- response.proxyAccountId = instance.proxyAccountId;
- response.twitterConsumerKey = instance.twitterConsumerKey;
- response.twitterConsumerSecret = instance.twitterConsumerSecret;
- response.githubClientId = instance.githubClientId;
- response.githubClientSecret = instance.githubClientSecret;
- response.discordClientId = instance.discordClientId;
- response.discordClientSecret = instance.discordClientSecret;
- response.summalyProxy = instance.summalyProxy;
- response.email = instance.email;
- response.smtpSecure = instance.smtpSecure;
- response.smtpHost = instance.smtpHost;
- response.smtpPort = instance.smtpPort;
- response.smtpUser = instance.smtpUser;
- response.smtpPass = instance.smtpPass;
- response.swPrivateKey = instance.swPrivateKey;
- response.useObjectStorage = instance.useObjectStorage;
- response.objectStorageBaseUrl = instance.objectStorageBaseUrl;
- response.objectStorageBucket = instance.objectStorageBucket;
- response.objectStoragePrefix = instance.objectStoragePrefix;
- response.objectStorageEndpoint = instance.objectStorageEndpoint;
- response.objectStorageRegion = instance.objectStorageRegion;
- response.objectStoragePort = instance.objectStoragePort;
- response.objectStorageAccessKey = instance.objectStorageAccessKey;
- response.objectStorageSecretKey = instance.objectStorageSecretKey;
- response.objectStorageUseSSL = instance.objectStorageUseSSL;
- response.objectStorageUseProxy = instance.objectStorageUseProxy;
- response.objectStorageSetPublicRead = instance.objectStorageSetPublicRead;
- response.objectStorageS3ForcePathStyle = instance.objectStorageS3ForcePathStyle;
- response.deeplAuthKey = instance.deeplAuthKey;
- response.deeplIsPro = instance.deeplIsPro;
- }
}
return response;