barkey/packages/backend/src/server/api/endpoints/admin
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
..
accounts ignore instance.actor when checking if there are local users (#13146) 2024-02-04 20:46:28 +09:00
ad Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
announcements Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
avatar-decorations Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
drive Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
emoji Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
federation Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
invite Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
promo Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
queue Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
relays Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
roles refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
abuse-user-reports.ts refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
delete-account.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
delete-all-files-of-a-user.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
get-index-stats.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
get-table-stats.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
get-user-ips.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
meta.ts feat: Add support for mCaptcha (#12905) 2024-01-06 20:14:33 +09:00
reset-password.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
resolve-abuse-user-report.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
send-email.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
server-info.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
show-moderation-logs.ts refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
show-user.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
show-users.ts refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
suspend-user.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
unset-user-avatar.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
unset-user-banner.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
unsuspend-user.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
update-meta.ts feat: Add support for mCaptcha (#12905) 2024-01-06 20:14:33 +09:00
update-user-note.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00