egirlskey/packages/backend
Gianni Ceccarelli bafef1f8b4
ignore instance.actor when checking if there are local users (#13146)
* ignore `instance.actor` when checking if there are local users

We've seen this happen a few times:

* there was some AP software at $some_domain
* it gets replaced by Misskey
* before the first user can be created, an AP activity comes in
* Misskey resolves the activity
* to do this, it creates the `instance.actor` to sign its request
* now there *is* a local user, so the `meta` endpoint returns
  `requireSetup:false`
* the admin is very confused

This commit factors out the check, and doesn't count the
`instance.actor` as a real user.

* autogen bits
2024-02-04 20:46:28 +09:00
..
.vscode
assets Feat: 未読通知数を表示できるように (#11982) 2023-11-01 13:34:05 +09:00
migration fix(backend): "誰でも新規登録できるようにする"の初期値をOFFにする (#13130) 2024-02-02 11:24:45 +09:00
nsfw-model
src ignore instance.actor when checking if there are local users (#13146) 2024-02-04 20:46:28 +09:00
test refactor: noteテーブルのインデックス整理と配列カラムへのクエリでインデックスを使うように (#12993) 2024-01-15 08:19:27 +09:00
test-server enhance(backend): テストの高速化 (#12939) 2024-01-08 17:43:52 +09:00
.eslintignore
.eslintrc.cjs
.madgerc
.swcrc fix swcrc 2023-12-14 11:35:17 +09:00
check_connect.js
generate_api_json.js fix: api-docが開けない問題を修正 (#13132) 2024-02-02 12:47:07 +09:00
jest.config.cjs enhance(backend): テストの高速化 (#12939) 2024-01-08 17:43:52 +09:00
jest.config.e2e.cjs enhance(backend): テストの高速化 (#12939) 2024-01-08 17:43:52 +09:00
jest.config.unit.cjs enhance(backend): テストの高速化 (#12939) 2024-01-08 17:43:52 +09:00
jsconfig.json
ormconfig.js
package.json update deps 2024-01-30 20:59:44 +09:00
README.md
tsconfig.json update deps (#11764) 2023-09-04 13:33:38 +09:00
watch.mjs

Misskey Backend