sharkey/packages/backend/src/server/api
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
..
endpoints ignore instance.actor when checking if there are local users (#13146) 2024-02-04 20:46:28 +09:00
openapi fix: api-docが開けない問題を修正 (#13132) 2024-02-02 12:47:07 +09:00
stream enhance(reversi): improve desync handling 2024-01-23 10:51:59 +09:00
ApiCallService.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
ApiLoggerService.ts chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00
ApiServerService.ts refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
AuthenticateService.ts refactor(backend): update directory structure for models 2023-09-20 11:33:36 +09:00
endpoint-base.ts refactor(backend): update directory structure for models 2023-09-20 11:33:36 +09:00
endpoints.ts refactor: frontendのcomponentsの型エラーを改善 (#12926) 2024-01-30 19:53:53 +09:00
EndpointsModule.ts enhance(reversi): improve desync handling 2024-01-23 10:51:59 +09:00
error.ts chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00
GetterService.ts refactor(backend): update directory structure for models 2023-09-20 11:33:36 +09:00
RateLimiterService.ts chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00
SigninApiService.ts perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
SigninService.ts perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
SignupApiService.ts refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
StreamingApiServerService.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00