Sharkey/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 Update settings.json 2022-04-15 21:33:00 +09:00
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 feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
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 use eslint 2021-11-12 10:35:41 +09:00
.eslintrc.cjs test(server): add validation test of api:notes/create (#10090) 2023-02-26 11:28:05 +09:00
.madgerc Create .madgerc 2022-09-20 01:04:08 +09:00
.swcrc fix swcrc 2023-12-14 11:35:17 +09:00
check_connect.js chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00
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 use eslint 2021-11-12 10:35:41 +09:00
ormconfig.js fix: postgre -> postgres (#9814) 2023-02-07 19:50:38 +09:00
package.json update deps 2024-01-30 20:59:44 +09:00
README.md chore: ✌️ 2022-12-24 14:39:17 +09:00
tsconfig.json update deps (#11764) 2023-09-04 13:33:38 +09:00
watch.mjs chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00

Misskey Backend