Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
This commit is contained in:
commit
e9f34a0f09
6 changed files with 24 additions and 568 deletions
7
src/@types/is-root.d.ts
vendored
7
src/@types/is-root.d.ts
vendored
|
@ -1,7 +0,0 @@
|
|||
declare module 'is-root' {
|
||||
function isRoot(): boolean;
|
||||
|
||||
namespace isRoot {} // Hack
|
||||
|
||||
export = isRoot;
|
||||
}
|
|
@ -2,7 +2,6 @@ import * as os from 'os';
|
|||
import * as cluster from 'cluster';
|
||||
import * as chalk from 'chalk';
|
||||
import * as portscanner from 'portscanner';
|
||||
import * as isRoot from 'is-root';
|
||||
import { getConnection } from 'typeorm';
|
||||
|
||||
import Logger from '@/services/logger.js';
|
||||
|
@ -39,6 +38,11 @@ function greet() {
|
|||
bootLogger.info(`Misskey v${meta.version}`, null, true);
|
||||
}
|
||||
|
||||
function isRoot() {
|
||||
// maybe process.getuid will be undefined under not POSIX environment (e.g. Windows)
|
||||
return process.getuid != null && process.getuid() === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Init master process
|
||||
*/
|
||||
|
|
|
@ -28,3 +28,6 @@ MFMには、そのURLのプレビューを無効にする構文があります
|
|||
|
||||
## Botを開発したい
|
||||
Misskey APIを利用してBotの開発が可能です。[こちら](../advanced/develop-bot)をご確認ください。
|
||||
|
||||
## ノートの翻訳機能はどのサービスを使用していますか?
|
||||
[DeepL](https://www.deepl.com/)を使用しています。
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue