Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
0c9af9a
Revert "revert 5f88d56d96"
tamaina Jul 20, 2024
69bf858
admin/show-userで公開鍵(リモートユーザー)/秘密鍵公開鍵ペア(ローカルユーザー)を確認できるように
tamaina Jul 20, 2024
9e958c0
update res props @ admin/show-user
tamaina Jul 20, 2024
5ccc9d6
update res props @ admin/show-user
tamaina Jul 20, 2024
307e1c4
short cache ttl 12min → 5min
tamaina Jul 20, 2024
73e3427
autogen
tamaina Jul 20, 2024
dd8561f
modify InboxProcessorService
tamaina Jul 20, 2024
018f058
not skip
tamaina Jul 20, 2024
dd41dd0
remoteUserUpdatedでpublicKeyキャッシュを削除するように
tamaina Jul 20, 2024
88085fd
deliverでinboxに投げて401が返ってきた場合、時計が狂っている場合があるためリトライできるように
tamaina Jul 20, 2024
7503fc8
HTTP署名パースにおいてDateとサーバー時間のズレは両方向に300sを許容するように
tamaina Jul 20, 2024
1721c39
Merge branch 'develop' into re-ed25519
tamaina Jul 31, 2024
cf7b8ab
Update packages/backend/src/core/QueueService.ts
tamaina Jul 31, 2024
ac4e0dd
Update packages/backend/src/core/QueueService.ts
tamaina Jul 31, 2024
f67b268
Merge branch 'develop' into re-ed25519
tamaina Jul 31, 2024
4477f95
Merge branch 'develop' into re-ed25519
tamaina Aug 17, 2024
2a43258
fix conflict
tamaina Aug 17, 2024
d01cd15
Merge branch 'develop' into re-ed25519
tamaina Aug 18, 2024
e4b4e91
fix
tamaina Aug 18, 2024
40e08c7
Merge branch 'develop' into re-ed25519
tamaina Sep 9, 2024
be86213
Merge branch 'develop' into re-ed25519
tamaina Sep 9, 2024
61d5371
Merge branch 'develop' into re-ed25519
tamaina Sep 21, 2024
97cdde1
Merge branch 'develop' into re-ed25519
tamaina Sep 24, 2024
1c3f1a6
modosu
tamaina Sep 24, 2024
1b9494c
Revert "modosu"
tamaina Sep 24, 2024
1560646
Merge branch 'develop' into re-ed25519
tamaina Sep 26, 2024
fb6a979
Merge branch 'develop' into re-ed25519
tamaina Sep 26, 2024
310b3a5
Merge branch 'develop' into re-ed25519
tamaina Sep 26, 2024
c137167
Merge branch 'develop' into re-ed25519
tamaina Sep 29, 2024
3254297
Merge branch 'develop' into re-ed25519
tamaina Sep 29, 2024
585f77a
Merge branch 'develop' into re-ed25519
tamaina Oct 5, 2024
354a377
Merge branch 'develop' into re-ed25519
tamaina Oct 8, 2024
2d17315
Merge branch 'develop' into re-ed25519
tamaina Oct 15, 2024
bf8073e
fix lint (possibly 'null
tamaina Oct 15, 2024
c619825
Merge branch 'develop' into re-ed25519
tamaina Oct 29, 2024
d7aeebc
Merge branch 'develop' into re-ed25519
tamaina Nov 9, 2024
e211284
Merge branch 'develop' into re-ed25519
tamaina Nov 11, 2024
40756dc
Merge branch 'develop' into re-ed25519
tamaina Nov 19, 2024
ec1f8b3
Merge branch 're-ed25519' into re2-ed25519
tamaina Jul 4, 2025
6c0f2ca
additional change
tamaina Jul 4, 2025
ae84c77
fix lint
tamaina Jul 4, 2025
96341da
fix type missing of request.rawBody
tamaina Jul 4, 2025
1e7fea4
各configのデフォルト値を揃える
tamaina Jul 4, 2025
48b3372
Merge branch 'develop' into re2-ed25519
tamaina Jul 6, 2025
0933aba
debug log
tamaina Jul 6, 2025
48836d6
debug log print acct
tamaina Jul 6, 2025
2e69806
docker compose logs -t
tamaina Jul 6, 2025
357aec3
split logs
tamaina Jul 6, 2025
6e138b1
debug
tamaina Jul 6, 2025
a12ffc2
log
tamaina Jul 6, 2025
f1d49af
log
tamaina Jul 6, 2025
4417f05
isRemoteSuspend
tamaina Jul 7, 2025
585ff3d
isSuspendedの周囲にisRemoteSuspendedの考慮を追加
tamaina Jul 7, 2025
dabdaf1
perform(One)Activityでローカル凍結で全部弾いてしまうのはやめよう
tamaina Jul 7, 2025
91fca71
define ap person create/update/render
tamaina Jul 7, 2025
9ce03e5
UserSuspendServiceにおいてdeliverするのはAccoutUpdateにする
tamaina Jul 7, 2025
412f4a9
split federation test (user-suspension.test.ts)
tamaina Jul 7, 2025
7a5ada1
fix generateDummyUser
tamaina Jul 7, 2025
02ac7d0
wip
tamaina Jul 13, 2025
e5a0d27
add migration
tamaina Jul 13, 2025
77a11e3
add test
tamaina Jul 13, 2025
3a5870b
add migration; copy suspended state from user table
tamaina Jul 13, 2025
cbc85ee
wip
tamaina Jul 14, 2025
4da98fe
test(backend): 非FTT時のテストを追加
tamaina Jul 14, 2025
479525a
clean up
tamaina Jul 14, 2025
08e4fed
Merge branch 'no-ftt-test' into issue16270
tamaina Jul 14, 2025
6ad3f07
revert
tamaina Jul 14, 2025
16cb881
clean up
tamaina Jul 14, 2025
4a4a57d
Merge branch 'develop' into no-ftt-test
tamaina Jul 15, 2025
c592898
skip test about reply
tamaina Jul 15, 2025
26e6c14
Fix #16289
tamaina Jul 15, 2025
37b4340
Merge branch 'no-ftt-test' into issue16270
tamaina Jul 15, 2025
5828e6d
Merge branch 'develop' into no-ftt-test
tamaina Jul 16, 2025
7e648b5
Merge branch 'no-ftt-test' into issue16270
tamaina Jul 16, 2025
f5d4b27
fix migration
tamaina Jul 16, 2025
85f4730
update test
tamaina Jul 16, 2025
5164a94
clean up
tamaina Jul 16, 2025
9961eca
Merge branch 'no-ftt-test' into issue16270
tamaina Jul 16, 2025
90eccd4
fix
tamaina Jul 16, 2025
399e527
???
tamaina Jul 16, 2025
f50364b
update test
tamaina Jul 16, 2025
537a49a
fixed
tamaina Jul 16, 2025
eee0aba
cherry pick
tamaina Jul 16, 2025
cb38757
Merge branch 'no-ftt-test' into issue16270
tamaina Jul 16, 2025
7476dda
add renote test
tamaina Jul 16, 2025
25d2121
Merge branch 'no-ftt-test' into issue16270
tamaina Jul 16, 2025
3f4e80f
Fix https://github.com/misskey-dev/misskey/issues/16293
tamaina Jul 16, 2025
4e69755
remove debug log
tamaina Jul 16, 2025
f7f4cff
Merge branch 'no-ftt-test' into issue16270
tamaina Jul 16, 2025
bb4af98
clean up
tamaina Jul 17, 2025
1fc2ae0
wip: addAllKnowingSharedInbox
tamaina Jul 17, 2025
a24c495
wip
tamaina Jul 17, 2025
a6cdcfb
around ApDeliverManagerService
tamaina Jul 17, 2025
e6112c0
Merge branch 'ap-susp-update' into remote-suspend
tamaina Jul 17, 2025
e48590f
n
tamaina Jul 17, 2025
bbdfb42
fix unit test
tamaina Jul 17, 2025
abd4d83
Merge branch 'ap-susp-update' into remote-suspend
tamaina Jul 17, 2025
90eeaa9
Merge branch 'develop' into remote-suspend
tamaina Jul 17, 2025
306fe94
Merge branch 'develop' into ap-susp-update
tamaina Jul 17, 2025
5a756c0
Merge branch 'develop' into issue16270
tamaina Jul 17, 2025
0267197
fix migration file
tamaina Jul 17, 2025
ab61baa
wip
tamaina Jul 17, 2025
1ae7150
isSuspendedEither
tamaina Jul 17, 2025
9612567
fix migration
tamaina Jul 17, 2025
dd09ce2
fix unit tests?
tamaina Jul 17, 2025
3e9d342
Merge branch 'develop' into ap-susp-update
tamaina Jul 18, 2025
8850ea5
Merge branch 'develop' into issue16270
tamaina Jul 18, 2025
32bdaad
Merge branch 'develop' into no-ftt-test
tamaina Jul 18, 2025
b534350
Merge branch 'develop' into remote-suspend
tamaina Jul 18, 2025
002e69d
clean up
tamaina Jul 18, 2025
c7a5b92
Merge branch 'ap-susp-update' of https://github.com/tamaina/misskey i…
tamaina Jul 18, 2025
090ab19
actions fail invest: skip test apdeliveerman
tamaina Jul 18, 2025
4bac864
Revert "actions fail invest: skip test apdeliveerman"
tamaina Jul 18, 2025
d4065d5
actions fail invest: log jest setup
tamaina Jul 18, 2025
9447bbe
actions fail invest: skip oauth test
tamaina Jul 18, 2025
3dac916
actions fail invest: log test-server entry
tamaina Jul 18, 2025
90c4551
Revert "actions fail invest: skip oauth test"
tamaina Jul 18, 2025
db67e81
Reapply "actions fail invest: skip oauth test"
tamaina Jul 20, 2025
1c03446
actions fail invest: log fastify.closed
tamaina Jul 20, 2025
89d919e
Revert "actions fail invest: log fastify.closed"
tamaina Jul 20, 2025
2cc46fc
actions fail invest: log fastify.closed
tamaina Jul 20, 2025
f81cc41
Revert "actions fail invest: log fastify.closed"
tamaina Jul 20, 2025
ef6e3ca
Reapply "actions fail invest: log fastify.closed"
tamaina Jul 20, 2025
382d656
Revert "Reapply "actions fail invest: skip oauth test""
tamaina Jul 20, 2025
761c19a
beforeEach → beforeAll
tamaina Jul 20, 2025
f18e44f
clearAllMocks
tamaina Jul 20, 2025
2960c20
beforeEach → beforeAll
tamaina Jul 20, 2025
1ab29c2
Merge branch 'develop' into no-ftt-test
tamaina Jul 20, 2025
a352818
Merge branch 'no-ftt-test' into issue16270
tamaina Jul 20, 2025
de97a3e
Merge branch 'issue16270' into ap-susp-update
tamaina Jul 20, 2025
bd0438e
Merge branch 'ap-susp-update' into remote-suspend
tamaina Jul 20, 2025
9dabd76
Merge branch 'remote-suspend' of https://github.com/tamaina/misskey i…
tamaina Jul 20, 2025
6aad929
actions fail invest: log SerrverService.dispose
tamaina Jul 20, 2025
449fadd
log fix
tamaina Jul 20, 2025
03e404c
Revert "log fix"
tamaina Jul 20, 2025
634f16f
Revert "actions fail invest: log SerrverService.dispose"
tamaina Jul 20, 2025
be68892
remove console.log
tamaina Jul 20, 2025
9c04952
Merge branch 'ap-susp-update' into remote-suspend
tamaina Jul 23, 2025
1cc6159
fix unit test
tamaina Jul 23, 2025
665c9dc
:v:
tamaina Jul 23, 2025
b55b48d
update AccountUpdateService
tamaina Jul 24, 2025
d07f000
Merge branch 'remote-suspend' into re2-ed25519
tamaina Jul 24, 2025
6af0c44
migration fix
tamaina Jul 24, 2025
ea87e23
循環参照エラーを解消
tamaina Jul 24, 2025
97bfdb7
fix unit test of ApDeliverManagerService
tamaina Jul 24, 2025
dbd54d0
wip
tamaina Jul 24, 2025
c68e928
wip
tamaina Jul 24, 2025
63be322
:v:
tamaina Jul 24, 2025
a3ae3e5
fix models/UserPublickey.ts
tamaina Jul 24, 2025
6f83e9d
fix(test): Fix name of a test in e2e/timelines.ts
tamaina Jul 31, 2025
9c4b01d
Merge branch 'fix-timelines-e2e' into issue16270
tamaina Jul 31, 2025
8a39b39
Merge branch 'issue16270' into ap-susp-update
tamaina Jul 31, 2025
d5a9a0e
Merge branch 'ap-susp-update' into remote-suspend
tamaina Jul 31, 2025
7a98226
Merge branch 'remote-suspend' into re2-ed25519
tamaina Jul 31, 2025
457b53d
Merge branch 'develop' into fix-timelines-e2e
tamaina Jul 31, 2025
b07ca46
Merge branch 'fix-timelines-e2e' into issue16270
tamaina Jul 31, 2025
c39842a
Merge branch 'issue16270' into ap-susp-update
tamaina Jul 31, 2025
c1a30fe
Merge branch 'ap-susp-update' into remote-suspend
tamaina Jul 31, 2025
6bce76e
Merge branch 'remote-suspend' into re2-ed25519
tamaina Jul 31, 2025
98926c3
Merge branch 'develop' into issue16270
tamaina Aug 14, 2025
fda1e7f
Merge branch 'issue16270' into ap-susp-update
tamaina Aug 14, 2025
4a79ad9
Merge branch 'ap-susp-update' into remote-suspend
tamaina Aug 14, 2025
7935bf5
Merge branch 'remote-suspend' into re2-ed25519
tamaina Aug 14, 2025
d72119f
Merge branch 'develop' into issue16270
tamaina Aug 25, 2025
97f4c6a
Merge branch 'issue16270' into ap-susp-update
tamaina Aug 25, 2025
fdbf7bd
Merge branch 'ap-susp-update' into remote-suspend
tamaina Aug 25, 2025
11a2dea
Merge branch 'remote-suspend' into re2-ed25519
tamaina Aug 25, 2025
5e9f2e3
fix
tamaina Aug 25, 2025
58f28d6
Merge branch 'remote-suspend' into re2-ed25519
tamaina Aug 25, 2025
e036d3d
Merge branch 'develop' into re2-ed25519
tamaina Dec 1, 2025
f26f778
Merge branch 'develop' into re2-ed25519
tamaina Dec 6, 2025
75aae38
refactor
tamaina Jan 7, 2026
d059e85
Merge branch 'develop' into re2-ed25519
tamaina Jan 7, 2026
0659338
add httpMessageSignaturesImplementationLevel to fakes.ts
tamaina Jan 7, 2026
74188dd
Merge branch 'develop' into re2-ed25519
tamaina Jan 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .config/cypress-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,17 @@ id: 'aidx'
#clusterLimit: 1

# Job concurrency per worker
# deliverJobConcurrency: 128
# inboxJobConcurrency: 16
#deliverJobConcurrency: 16
#inboxJobConcurrency: 4
#relationshipJobConcurrency: 16

# Job rate limiter
# deliverJobPerSec: 128
# inboxJobPerSec: 32
#deliverJobPerSec: 1024
#inboxJobPerSec: 64

# Job attempts
# deliverJobMaxAttempts: 12
# inboxJobMaxAttempts: 8
#deliverJobMaxAttempts: 12
#inboxJobMaxAttempts: 8

# IP address family used for outgoing request (ipv4, ipv6 or dual)
#outgoingAddressFamily: ipv4
Expand Down
13 changes: 7 additions & 6 deletions .config/docker_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,17 @@ id: 'aidx'
#clusterLimit: 1

# Job concurrency per worker
# deliverJobConcurrency: 128
# inboxJobConcurrency: 16
#deliverJobConcurrency: 16
#inboxJobConcurrency: 4
#relationshipJobConcurrency: 16

# Job rate limiter
# deliverJobPerSec: 128
# inboxJobPerSec: 32
#deliverJobPerSec: 1024
#inboxJobPerSec: 64

# Job attempts
# deliverJobMaxAttempts: 12
# inboxJobMaxAttempts: 8
#deliverJobMaxAttempts: 12
#inboxJobMaxAttempts: 8

# IP address family used for outgoing request (ipv4, ipv6 or dual)
#outgoingAddressFamily: ipv4
Expand Down
8 changes: 4 additions & 4 deletions .config/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -329,15 +329,15 @@ id: 'aidx'
#clusterLimit: 1

# Job concurrency per worker
#deliverJobConcurrency: 128
#inboxJobConcurrency: 16
#deliverJobConcurrency: 16
#inboxJobConcurrency: 4
#relationshipJobConcurrency: 16
# What's relationshipJob?:
# Follow, unfollow, block and unblock(ings) while following-imports, etc. or account migrations.

# Job rate limiter
#deliverJobPerSec: 128
#inboxJobPerSec: 32
#deliverJobPerSec: 1024
#inboxJobPerSec: 64
#relationshipJobPerSec: 64

# Job attempts
Expand Down
13 changes: 7 additions & 6 deletions .devcontainer/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,17 @@ id: 'aidx'
#clusterLimit: 1

# Job concurrency per worker
# deliverJobConcurrency: 128
# inboxJobConcurrency: 16
#deliverJobConcurrency: 16
#inboxJobConcurrency: 4
#relationshipJobConcurrency: 16

# Job rate limiter
# deliverJobPerSec: 128
# inboxJobPerSec: 32
#deliverJobPerSec: 1024
#inboxJobPerSec: 64

# Job attempts
# deliverJobMaxAttempts: 12
# inboxJobMaxAttempts: 8
#deliverJobMaxAttempts: 12
#inboxJobMaxAttempts: 8

# IP address family used for outgoing request (ipv4, ipv6 or dual)
#outgoingAddressFamily: ipv4
Expand Down
44 changes: 42 additions & 2 deletions .github/workflows/test-federation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,51 @@ jobs:
run: |
cd packages/backend/test-federation
docker compose run --no-deps tester
- name: Log
- name: 'Redis Log'
if: always()
run: |
cd packages/backend/test-federation
docker compose logs
docker compose logs -t redis.test
- name: 'Setup Log'
if: always()
run: |
cd packages/backend/test-federation
docker compose logs -t setup
- name: 'DB A Log'
if: always()
run: |
cd packages/backend/test-federation
docker compose logs -t db.a.test
- name: 'DB B Log'
if: always()
run: |
cd packages/backend/test-federation
docker compose logs -t db.b.test
- name: 'Daemon Log'
if: always()
run: |
cd packages/backend/test-federation
docker compose logs -t daemon
- name: 'Misskey A Log'
if: always()
run: |
cd packages/backend/test-federation
docker compose logs -t misskey.a.test
- name: 'Misskey B Log'
if: always()
run: |
cd packages/backend/test-federation
docker compose logs -t misskey.b.test
- name: 'Nginx A Log'
if: always()
run: |
cd packages/backend/test-federation
docker compose logs -t a.test
- name: 'Nginx B Log'
if: always()
run: |
cd packages/backend/test-federation
docker compose logs -t b.test
- name: Stop servers
if: always()
run: |
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ See [`/packages/backend/test-federation/README.md`](/packages/backend/test-feder
## Environment Variable

- `MISSKEY_CONFIG_YML`: Specify the file path of config.yml instead of default.yml (e.g. `2nd.yml`).
- `MISSKEY_WEBFINGER_USE_HTTP`: If it's set true, WebFinger requests will be http instead of https, useful for testing federation between servers in localhost. NEVER USE IN PRODUCTION.
- `MISSKEY_USE_HTTP`: If it's set true, federation requests (like nodeinfo and webfinger) will be http instead of https, useful for testing federation between servers in localhost. NEVER USE IN PRODUCTION. (was `MISSKEY_WEBFINGER_USE_HTTP`)

## Continuous integration
Misskey uses GitHub Actions for executing automated tests.
Expand Down
13 changes: 7 additions & 6 deletions chart/files/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,16 +191,17 @@ id: "aidx"
#clusterLimit: 1

# Job concurrency per worker
# deliverJobConcurrency: 128
# inboxJobConcurrency: 16
#deliverJobConcurrency: 16
#inboxJobConcurrency: 4
#relationshipJobConcurrency: 16

# Job rate limiter
# deliverJobPerSec: 128
# inboxJobPerSec: 32
#deliverJobPerSec: 1024
#inboxJobPerSec: 64

# Job attempts
# deliverJobMaxAttempts: 12
# inboxJobMaxAttempts: 8
#deliverJobMaxAttempts: 12
#inboxJobMaxAttempts: 8

# IP address family used for outgoing request (ipv4, ipv6 or dual)
#outgoingAddressFamily: ipv4
Expand Down
39 changes: 39 additions & 0 deletions packages/backend/migration/1708980134301-APMultipleKeys.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/

export class APMultipleKeys1708980134301 {
name = 'APMultipleKeys1708980134301'

async up(queryRunner) {
await queryRunner.query(`DROP INDEX "public"."IDX_171e64971c780ebd23fae140bb"`);
await queryRunner.query(`ALTER TABLE "user_keypair" ADD "ed25519PublicKey" character varying(128)`);
await queryRunner.query(`ALTER TABLE "user_keypair" ADD "ed25519PrivateKey" character varying(128)`);
await queryRunner.query(`ALTER TABLE "user_publickey" DROP CONSTRAINT "FK_10c146e4b39b443ede016f6736d"`);
await queryRunner.query(`ALTER TABLE "user_publickey" DROP CONSTRAINT "PK_10c146e4b39b443ede016f6736d"`);
await queryRunner.query(`ALTER TABLE "user_publickey" ADD CONSTRAINT "PK_0db6a5fdb992323449edc8ee421" PRIMARY KEY ("userId", "keyId")`);
await queryRunner.query(`ALTER TABLE "user_publickey" DROP CONSTRAINT "PK_0db6a5fdb992323449edc8ee421"`);
await queryRunner.query(`ALTER TABLE "user_publickey" ADD CONSTRAINT "PK_171e64971c780ebd23fae140bba" PRIMARY KEY ("keyId")`);
await queryRunner.query(`ALTER TABLE "user_publickey" ADD CONSTRAINT "UQ_10c146e4b39b443ede016f6736d" UNIQUE ("userId")`);
await queryRunner.query(`CREATE INDEX "IDX_10c146e4b39b443ede016f6736" ON "user_publickey" ("userId") `);
await queryRunner.query(`ALTER TABLE "user_publickey" ADD CONSTRAINT "FK_10c146e4b39b443ede016f6736d" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
}

async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_publickey" DROP CONSTRAINT "FK_10c146e4b39b443ede016f6736d"`);
await queryRunner.query(`DROP INDEX "public"."IDX_10c146e4b39b443ede016f6736"`);
await queryRunner.query(`ALTER TABLE "user_publickey" DROP CONSTRAINT "UQ_10c146e4b39b443ede016f6736d"`);
await queryRunner.query(`ALTER TABLE "user_publickey" DROP CONSTRAINT "PK_171e64971c780ebd23fae140bba"`);
await queryRunner.query(`ALTER TABLE "user_publickey" ADD CONSTRAINT "PK_0db6a5fdb992323449edc8ee421" PRIMARY KEY ("userId", "keyId")`);
await queryRunner.query(`ALTER TABLE "user_publickey" DROP CONSTRAINT "PK_0db6a5fdb992323449edc8ee421"`);
await queryRunner.query(`ALTER TABLE "user_publickey" ADD CONSTRAINT "PK_10c146e4b39b443ede016f6736d" PRIMARY KEY ("userId")`);
await queryRunner.query(`ALTER TABLE "user_publickey" ADD CONSTRAINT "FK_10c146e4b39b443ede016f6736d" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followersVisibility" DROP DEFAULT`);
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followersVisibility" TYPE "public"."user_profile_followersVisibility_enum_old" USING "followersVisibility"::"text"::"public"."user_profile_followersVisibility_enum_old"`);
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followersVisibility" SET DEFAULT 'public'`);
await queryRunner.query(`ALTER TABLE "user_keypair" DROP COLUMN "ed25519PrivateKey"`);
await queryRunner.query(`ALTER TABLE "user_keypair" DROP COLUMN "ed25519PublicKey"`);
await queryRunner.query(`CREATE UNIQUE INDEX "IDX_171e64971c780ebd23fae140bb" ON "user_publickey" ("keyId") `);
}
}
16 changes: 16 additions & 0 deletions packages/backend/migration/1709242519122-HttpSignImplLv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/

export class HttpSignImplLv1709242519122 {
name = 'HttpSignImplLv1709242519122'

async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "instance" ADD "httpMessageSignaturesImplementationLevel" character varying(16) NOT NULL DEFAULT '00'`);
}

async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "httpMessageSignaturesImplementationLevel"`);
}
}
16 changes: 16 additions & 0 deletions packages/backend/migration/1709269211718-APMultipleKeysFix1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/

export class APMultipleKeys1709269211718 {
name = 'APMultipleKeys1709269211718'

async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_publickey" DROP CONSTRAINT "UQ_10c146e4b39b443ede016f6736d"`);
}

async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_publickey" ADD CONSTRAINT "UQ_10c146e4b39b443ede016f6736d" UNIQUE ("userId")`);
}
}
19 changes: 19 additions & 0 deletions packages/backend/migration/1751848750315-RemoteSuspend.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class RemoteSuspend1751848750315 {
name = 'RemoteSuspend1751848750315'

async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" ADD "isRemoteSuspended" boolean NOT NULL DEFAULT false`);
await queryRunner.query(`COMMENT ON COLUMN "user"."isSuspended" IS 'Whether the User is suspended by the local moderators.'`);
await queryRunner.query(`COMMENT ON COLUMN "user"."isRemoteSuspended" IS 'Whether the User is suspended by the remote moderators.'`);
}

async down(queryRunner) {
await queryRunner.query(`COMMENT ON COLUMN "user"."isRemoteSuspended" IS 'Whether the User is suspended by the remote moderators.'`);
await queryRunner.query(`COMMENT ON COLUMN "user"."isSuspended" IS 'Whether the User is suspended.'`);
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "isRemoteSuspended"`);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/

export class FollowingIsFollowerSuspended1752410859370 {
name = 'FollowingIsFollowerSuspended1752410859370'

async up(queryRunner) {
await queryRunner.query(`DROP INDEX "public"."IDX_ce62b50d882d4e9dee10ad0d2f"`);
await queryRunner.query(`ALTER TABLE "following" ADD "isFollowerSuspended" boolean NOT NULL DEFAULT false`);
await queryRunner.query(`CREATE INDEX "IDX_1896254b78a41a50e0396fdabd" ON "following" ("followeeId", "followerHost", "isFollowerSuspended", "isFollowerHibernated") `);
await queryRunner.query(`CREATE INDEX "IDX_d2b8dbf0b772042f4fe241a29d" ON "following" ("followerId", "followeeId", "isFollowerSuspended") `);
}

async down(queryRunner) {
await queryRunner.query(`DROP INDEX "public"."IDX_d2b8dbf0b772042f4fe241a29d"`);
await queryRunner.query(`DROP INDEX "public"."IDX_1896254b78a41a50e0396fdabd"`);
await queryRunner.query(`ALTER TABLE "following" DROP COLUMN "isFollowerSuspended"`);
await queryRunner.query(`CREATE INDEX "IDX_ce62b50d882d4e9dee10ad0d2f" ON "following" ("followeeId", "followerHost", "isFollowerHibernated") `);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/

export class FollowingIsFollowerSuspendedCopySuspendedState1752410900000 {
name = 'FollowingIsFollowerSuspendedCopySuspendedState1752410900000'

async up(queryRunner) {
// Update existing records based on user suspension status
await queryRunner.query(`
UPDATE "following"
SET "isFollowerSuspended" = "user"."isSuspended"
FROM "user"
WHERE "following"."followerId" = "user"."id"
`);
}

async down(queryRunner) {
}
}
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@
"@fastify/multipart": "9.3.0",
"@fastify/static": "8.3.0",
"@kitajs/html": "4.2.11",
"@misskey-dev/node-http-message-signatures": "0.0.10",
"@misskey-dev/sharp-read-bmp": "1.2.0",
"@misskey-dev/summaly": "5.2.5",
"@napi-rs/canvas": "0.1.87",
"@nestjs/common": "11.1.10",
"@nestjs/core": "11.1.10",
"@nestjs/testing": "11.1.10",
"@peertube/http-signature": "1.7.0",
"@sentry/node": "10.32.1",
"@sentry/profiling-node": "10.32.1",
"@simplewebauthn/server": "13.2.2",
Expand Down
Loading
Loading