diff --git a/.config/example.yml b/.config/example.yml
index 086a6ca8fc..03864a3299 100644
--- a/.config/example.yml
+++ b/.config/example.yml
@@ -30,7 +30,7 @@ url: https://example.tld/
# The port that your Misskey server should listen on.
port: 3000
-# You can also use UNIX domain socket.
+# You can also use UNIX domain socket.
# socket: /path/to/misskey.sock
# chmodSocket: '777'
@@ -60,17 +60,17 @@ dbReplications: false
# You can configure any number of replicas here
#dbSlaves:
# -
-# host:
-# port:
-# db:
-# user:
-# pass:
+# host:
+# port:
+# db:
+# user:
+# pass:
# -
-# host:
-# port:
-# db:
-# user:
-# pass:
+# host:
+# port:
+# db:
+# user:
+# pass:
# ┌─────────────────────┐
#───┘ Redis configuration └─────────────────────────────────────
@@ -206,3 +206,6 @@ signToActivityPubGet: true
# Upload or download file size limits (bytes)
#maxFileSize: 262144000
+
+# PID File of master process
+#pidFile: /tmp/misskey.pid
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 26013c14df..b9b03bc266 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,16 @@
-->
+## next
+
+### General
+
+### Client
+- Enhance: モデレーションログ機能の強化
+
+### Server
+- Enhance: MasterプロセスのPIDを書き出せるように
+
## 2023.9.1
### General
diff --git a/packages/backend/src/boot/master.ts b/packages/backend/src/boot/master.ts
index a45ea2bb8f..623cc964ac 100644
--- a/packages/backend/src/boot/master.ts
+++ b/packages/backend/src/boot/master.ts
@@ -63,6 +63,7 @@ export async function masterMain() {
showNodejsVersion();
config = loadConfigBoot();
//await connectDb();
+ if (config.pidFile) fs.writeFileSync(config.pidFile, process.pid.toString());
} catch (e) {
bootLogger.error('Fatal error occurred during initialization', null, true);
process.exit(1);
diff --git a/packages/backend/src/config.ts b/packages/backend/src/config.ts
index abbfdfed8f..f89879d535 100644
--- a/packages/backend/src/config.ts
+++ b/packages/backend/src/config.ts
@@ -89,6 +89,7 @@ type Source = {
perChannelMaxNoteCacheCount?: number;
perUserNotificationsMaxCount?: number;
deactivateAntennaThreshold?: number;
+ pidFile: string;
};
export type Config = {
@@ -163,6 +164,7 @@ export type Config = {
perChannelMaxNoteCacheCount: number;
perUserNotificationsMaxCount: number;
deactivateAntennaThreshold: number;
+ pidFile: string;
};
const _filename = fileURLToPath(import.meta.url);
@@ -255,6 +257,7 @@ export function loadConfig(): Config {
perChannelMaxNoteCacheCount: config.perChannelMaxNoteCacheCount ?? 1000,
perUserNotificationsMaxCount: config.perUserNotificationsMaxCount ?? 300,
deactivateAntennaThreshold: config.deactivateAntennaThreshold ?? (1000 * 60 * 60 * 24 * 7),
+ pidFile: config.pidFile,
};
}
diff --git a/packages/frontend/src/pages/admin/modlog.ModLog.vue b/packages/frontend/src/pages/admin/modlog.ModLog.vue
index 14f94479f1..8d83b32fa1 100644
--- a/packages/frontend/src/pages/admin/modlog.ModLog.vue
+++ b/packages/frontend/src/pages/admin/modlog.ModLog.vue
@@ -16,6 +16,7 @@ SPDX-License-Identifier: AGPL-3.0-only
: {{ log.info.role.name }}
: {{ log.info.before.name }}
: {{ log.info.role.name }}
+ : {{ log.info.emoji.name }}
: {{ log.info.before.name }}
: @{{ log.info.fileUserUsername }}{{ log.info.fileUserHost ? '@' + log.info.fileUserHost : '' }}
: @{{ log.info.fileUserUsername }}{{ log.info.fileUserHost ? '@' + log.info.fileUserHost : '' }}