diff options
Diffstat (limited to 'src/server/nodeinfo.ts')
| -rw-r--r-- | src/server/nodeinfo.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/nodeinfo.ts b/src/server/nodeinfo.ts index b0de850dd0..5c51137c92 100644 --- a/src/server/nodeinfo.ts +++ b/src/server/nodeinfo.ts @@ -1,6 +1,7 @@ import * as Router from '@koa/router'; import config from '../config'; import { fetchMeta } from '../misc/fetch-meta'; +import { Users } from '../models'; // import User from '../models/user'; // import Note from '../models/note'; @@ -34,6 +35,8 @@ const nodeinfo2 = async () => { // Note.count({ '_user.host': null, replyId: { $ne: null } }) ]); + const proxyAccount = meta.proxyAccountId ? await Users.pack(meta.proxyAccountId).catch(() => null) : null; + return { software: { name: 'misskey', @@ -72,7 +75,8 @@ const nodeinfo2 = async () => { enableGithubIntegration: meta.enableGithubIntegration, enableDiscordIntegration: meta.enableDiscordIntegration, enableEmail: meta.enableEmail, - enableServiceWorker: meta.enableServiceWorker + enableServiceWorker: meta.enableServiceWorker, + proxyAccountName: proxyAccount ? proxyAccount.username : null, } }; }; |