mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-30 15:58:16 +09:00
/_info_card_ から使用していないクエリを削除 (#516)
This commit is contained in:
parent
738df7626b
commit
67d236c201
@ -776,17 +776,10 @@ export class ClientServerService {
|
||||
|
||||
reply.removeHeader('X-Frame-Options');
|
||||
|
||||
const [originalUsersCount, originalNotesCount] = await Promise.all([
|
||||
this.usersRepository.count({ where: { host: IsNull() }, cache: 1000 * 60 * 60 * 6 }), // 6 hours
|
||||
this.notesRepository.count({ where: { userHost: IsNull() }, cache: 1000 * 60 * 60 * 6 }), // 6 hours
|
||||
]);
|
||||
|
||||
return await reply.view('info-card', {
|
||||
version: this.config.version,
|
||||
host: this.config.host,
|
||||
meta: meta,
|
||||
originalUsersCount,
|
||||
originalNotesCount,
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user