summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/DriveService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-03-24 19:08:08 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-03-24 19:08:08 +0900
commit31f3f5f0f04b438b7cf12295303dc9adde28f82f (patch)
treefb5b9bc5b96dd2cf545bb87750e97640efab8569 /packages/backend/src/core/DriveService.ts
parentenhance(backend): use :heart: for reaction fallback (diff)
downloadsharkey-31f3f5f0f04b438b7cf12295303dc9adde28f82f.tar.gz
sharkey-31f3f5f0f04b438b7cf12295303dc9adde28f82f.tar.bz2
sharkey-31f3f5f0f04b438b7cf12295303dc9adde28f82f.zip
enhance(backend): リモートサーバーのチャート生成を無効にするオプションを追加
Diffstat (limited to 'packages/backend/src/core/DriveService.ts')
-rw-r--r--packages/backend/src/core/DriveService.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/backend/src/core/DriveService.ts b/packages/backend/src/core/DriveService.ts
index 7e991cfd9e..c6258474ec 100644
--- a/packages/backend/src/core/DriveService.ts
+++ b/packages/backend/src/core/DriveService.ts
@@ -624,7 +624,9 @@ export class DriveService {
// ローカルユーザーのみ
this.perUserDriveChart.update(file, true);
} else {
- this.instanceChart.updateDrive(file, true);
+ if ((await this.metaService.fetch()).enableChartsForFederatedInstances) {
+ this.instanceChart.updateDrive(file, true);
+ }
}
return file;
@@ -712,7 +714,9 @@ export class DriveService {
// ローカルユーザーのみ
this.perUserDriveChart.update(file, false);
} else {
- this.instanceChart.updateDrive(file, false);
+ if ((await this.metaService.fetch()).enableChartsForFederatedInstances) {
+ this.instanceChart.updateDrive(file, false);
+ }
}
}