barkey/packages/backend/src/server/api/endpoints
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
..
admin ignore instance.actor when checking if there are local users (#13146) 2024-02-04 20:46:28 +09:00
antennas refactor: make sure promises are settled before app shutdown (#12942) 2024-01-08 12:28:13 +09:00
ap refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
app perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
auth refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
blocking refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
bubble-game refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
channels Filter User / Instance Mutes in FanoutTimelineEndpointService (#12565) 2023-12-04 14:38:21 +09:00
charts chore(backend): Resolve import/no-default-export rule violations (#11732) 2023-08-17 21:20:58 +09:00
clips perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
drive refactor: noteテーブルのインデックス整理と配列カラムへのクエリでインデックスを使うように (#12993) 2024-01-15 08:19:27 +09:00
email-address chore(backend): Resolve import/no-default-export rule violations (#11732) 2023-08-17 21:20:58 +09:00
federation refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
flash enhance: api.jsonのレスポンスの内容を実際の内容に合わせる (#12723) 2023-12-21 16:57:05 +09:00
following すべてのフォロー中の人のwithRepliesを変える機能 (#12049) 2023-10-21 18:39:19 +09:00
gallery fix(backend): ギャラリーの人気の投稿の選出にidを用いるように (#12448) 2023-11-26 10:05:56 +09:00
hashtags refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
i refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
invite Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
miauth perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
mute update deps (#11820) 2023-09-15 14:28:29 +09:00
my Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
notes refactor: noteテーブルのインデックス整理と配列カラムへのクエリでインデックスを使うように (#12993) 2024-01-15 08:19:27 +09:00
notifications feat: notification grouping 2023-11-02 15:57:55 +09:00
pages perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
promo Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
renote-mute feat: reversi 2024-01-19 20:51:49 +09:00
reversi enhance(reversi): 変則なしマッチングを可能に 2024-01-24 16:37:06 +09:00
roles refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
sw Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
username refactor(backend): update directory structure for models 2023-09-20 11:33:36 +09:00
users fix: Hide reactions of all remote users / feat: moderators can see reactions of all users (#13128) 2024-02-01 20:05:45 +09:00
announcements.ts fix(backend): お知らせのページネーションが機能しない #11800 (#11890) 2023-09-24 20:08:00 +09:00
drive.ts chore(backend): Resolve import/no-default-export rule violations (#11732) 2023-08-17 21:20:58 +09:00
emoji.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
emojis.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
endpoint.ts enhance: api.jsonのレスポンスの内容を実際の内容に合わせる (#12723) 2023-12-21 16:57:05 +09:00
endpoints.ts chore(backend): Resolve import/no-default-export rule violations (#11732) 2023-08-17 21:20:58 +09:00
export-custom-emojis.ts chore(backend): Resolve import/no-default-export rule violations (#11732) 2023-08-17 21:20:58 +09:00
fetch-external-resources.ts Merge pull request from GHSA-7pxq-6xx9-xpgm 2023-12-27 15:08:59 +09:00
fetch-rss.ts enhance: api.jsonのレスポンスの内容を実際の内容に合わせる (#12723) 2023-12-21 16:57:05 +09:00
get-avatar-decorations.ts 🎨 2023-10-24 14:38:15 +09:00
get-online-users-count.ts enhance: api.jsonのレスポンスの内容を実際の内容に合わせる (#12723) 2023-12-21 16:57:05 +09:00
i.ts refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
meta.ts ignore instance.actor when checking if there are local users (#13146) 2024-02-04 20:46:28 +09:00
notes.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
page-push.ts refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
ping.ts chore(backend): Resolve import/no-default-export rule violations (#11732) 2023-08-17 21:20:58 +09:00
pinned-users.ts refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00
request-reset-password.ts perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
reset-db.ts chore(backend): Resolve import/no-default-export rule violations (#11732) 2023-08-17 21:20:58 +09:00
reset-password.ts perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
retention.ts refactor: frontendのcomponentsの型エラーを改善 (#12926) 2024-01-30 19:53:53 +09:00
server-info.ts enhance: api.jsonのレスポンスの内容を実際の内容に合わせる (#12723) 2023-12-21 16:57:05 +09:00
stats.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
test.ts enhance: api.jsonのレスポンスの内容を実際の内容に合わせる (#12723) 2023-12-21 16:57:05 +09:00
users.ts refactor(backend): User関連のスキーマ/型の指定を強くする (#12808) 2024-01-31 15:45:35 +09:00