Sharkey/packages/misskey-js/src/autogen
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
..
apiClientJSDoc.ts ignore instance.actor when checking if there are local users (#13146) 2024-02-04 20:46:28 +09:00
endpoint.ts ignore instance.actor when checking if there are local users (#13146) 2024-02-04 20:46:28 +09:00
entities.ts ignore instance.actor when checking if there are local users (#13146) 2024-02-04 20:46:28 +09:00
models.ts ignore instance.actor when checking if there are local users (#13146) 2024-02-04 20:46:28 +09:00
types.ts ignore instance.actor when checking if there are local users (#13146) 2024-02-04 20:46:28 +09:00