diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-08-29 08:56:32 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-29 08:56:32 +0900 |
| commit | c2d7929391d18072b46e6f829c956fd8d99e4b80 (patch) | |
| tree | 6237d96b196909044ab85d8aa6948d68931926fe /src/server/api/endpoints | |
| parent | Update create-notification.ts (diff) | |
| download | sharkey-c2d7929391d18072b46e6f829c956fd8d99e4b80.tar.gz sharkey-c2d7929391d18072b46e6f829c956fd8d99e4b80.tar.bz2 sharkey-c2d7929391d18072b46e6f829c956fd8d99e4b80.zip | |
Expose proxyAccountName (#6670)
Diffstat (limited to 'src/server/api/endpoints')
| -rw-r--r-- | src/server/api/endpoints/meta.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index f011a6751f..f46139aa23 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -99,6 +99,8 @@ export default define(meta, async (ps, me) => { } }); + const proxyAccount = instance.proxyAccountId ? await Users.pack(instance.proxyAccountId).catch(() => null) : null; + const response: any = { maintainerName: instance.maintainerName, maintainerEmail: instance.maintainerEmail, @@ -143,6 +145,8 @@ export default define(meta, async (ps, me) => { enableDiscordIntegration: instance.enableDiscordIntegration, enableServiceWorker: instance.enableServiceWorker, + + proxyAccountName: proxyAccount ? proxyAccount.username : null, }; if (ps.detail) { |