sharkey/packages/backend/src/core
Namekuji d28866f71a
enhance: account migration (#10592)
* copy block and mute then create follow and unfollow jobs

* copy block and mute and update lists when detecting an account has moved

* no need to care promise orders

* refactor updating actor and target

* automatically accept if a locked account had accepted an old account

* fix exception format

* prevent the old account from calling some endpoints

* do not unfollow when moving

* adjust following and follower counts

* check movedToUri when receiving a follow request

* skip if no need to adjust

* Revert "disable account migration"

This reverts commit 2321214c98.

* fix translation specifier

* fix checking alsoKnownAs and uri

* fix updating account

* fix refollowing locked account

* decrease followersCount if followed by the old account

* adjust following and followers counts when unfollowing

* fix copying mutings

* prohibit moved account from moving again

* fix move service

* allow app creation after moving

* fix lint

* remove unnecessary field

* fix cache update

* add e2e test

* add e2e test of accepting the new account automatically

* force follow if any error happens

* remove unnecessary joins

* use Array.map instead of for const of

* ユーザーリストの移行は追加のみを行う

* nanka iroiro

* fix misskey-js?

* ✌️

* 移行を行ったアカウントからのフォローリクエストの自動許可を調整

* newUriを外に出す

* newUriを外に出す2

* clean up

* fix newUri

* prevent moving if the destination account has already moved

* set alsoKnownAs via /i/update

* fix database initialization

* add return type

* prohibit updating alsoKnownAs after moving

* skip to add to alsoKnownAs if toUrl is known

* skip adding to the list if it already has

* use Acct.parse instead

* rename error code

* 🎨

* 制限を5から10に緩和

* movedTo(Uri), alsoKnownAsはユーザーidを返すように

* test api res

* fix

* 元アカウントはミュートし続ける

* 🎨

* unfollow

* fix

* getUserUriをUserEntityServiceに

* ?

* job!

* 🎨

* instance => server

* accountMovedShort, forbiddenBecauseYouAreMigrated

* accountMovedShort

* fix test

* import, pin禁止

* 実績を凍結する

* clean up

* ✌️

* change message

* ブロック, フォロー, ミュート, リストのインポートファイルの制限を32MiBに

* Revert "ブロック, フォロー, ミュート, リストのインポートファイルの制限を32MiBに"

This reverts commit 3bd7be35d8aa455cb01ae58f8172a71a50485db1.

* validateAlsoKnownAs

* 移行後2時間以内はインポート可能なファイルサイズを拡大

* clean up

* どうせactorをupdatePersonで更新するならupdatePersonしか移行処理を発行しないことにする

* handle error?

* リモートからの移行処理の条件を是正

* log, port

* fix

* fix

* enhance(dev): non-production環境でhttpサーバー間でもユーザー、ノートの連合が可能なように

* refactor (use checkHttps)

* MISSKEY_WEBFINGER_USE_HTTP

* Environment Variable readme

* NEVER USE IN PRODUCTION

* fix punyHost

* fix indent

* fix

* experimental

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-04-30 00:09:29 +09:00
..
activitypub enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
chart tweak postgresql entities 2023-03-10 14:53:56 +09:00
entities enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
AccountMoveService.ts enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
AccountUpdateService.ts feat: account migration (#10507) 2023-04-08 14:16:26 +09:00
AchievementService.ts add new achievement 2023-04-20 19:40:02 +09:00
AiService.ts chore: fix import position 2022-12-04 17:05:32 +09:00
AntennaService.ts fix types 2023-04-14 13:50:05 +09:00
AppLockService.ts fix types 2023-04-14 13:50:05 +09:00
CacheService.ts fix types 2023-04-14 13:50:05 +09:00
CaptchaService.ts fix(server): turnstile-failed: missing-input-secret 2023-01-26 11:31:43 +09:00
CoreModule.ts feat: account migration (#10507) 2023-04-08 14:16:26 +09:00
CreateSystemUserService.ts Role (#9437) 2023-01-12 21:02:26 +09:00
CustomEmojiService.ts カスタム絵文字のライセンスを一括でできるように (#10671) 2023-04-19 08:25:24 +09:00
DeleteAccountService.ts enhance(backend): improve cache 2023-04-05 10:21:10 +09:00
DownloadService.ts Fix?(server): Content-Dispositionのパースでエラーが発生した場合にもダウンロードが完了するように 2023-04-15 11:19:00 +00:00
DriveService.ts fix(server): Force the extention of exported file (#10630) 2023-04-14 14:35:38 +09:00
EmailService.ts refactor: introduce bindThis decorator to bind this automaticaly 2022-12-04 15:03:09 +09:00
FederatedInstanceService.ts fix of 34492f3c9a 2023-04-22 20:12:41 +09:00
FetchInstanceMetadataService.ts .js 2023-04-22 20:05:36 +09:00
FileInfoService.ts [fix] .wav .flac ファイルを再生可能にする (#10686) 2023-04-26 02:17:58 +09:00
GlobalEventService.ts fix types 2023-04-14 13:50:05 +09:00
HashtagService.ts drop hashtag chart 2023-02-03 14:10:14 +09:00
HttpRequestService.ts fix(server): HttpRequestService.sendでは常にUser-Agentを含むように 2023-02-14 04:08:56 +00:00
IdService.ts fix(server): IdService.parseを全てのidタイプに対応させるように (#10533) 2023-04-09 04:41:06 +09:00
ImageProcessingService.ts enhance(server): 画像圧縮周り(主にサムネイルの仕様)の変更 (#10287) 2023-03-11 14:11:40 +09:00
InstanceActorService.ts perf(backend): cache local custom emojis 2023-04-06 11:14:43 +09:00
InternalStorageService.ts chore: fix import position 2022-12-04 17:05:32 +09:00
LoggerService.ts drop syslog 2023-02-03 15:08:36 +09:00
MetaService.ts fix types 2023-04-14 13:50:05 +09:00
MfmService.ts MFMのDOM ParserをJSDOMからhappy-domに変更する (#10016) 2023-02-22 17:32:45 +09:00
ModerationLogService.ts refactor: introduce bindThis decorator to bind this automaticaly 2022-12-04 15:03:09 +09:00
NoteCreateService.ts fix types 2023-04-14 13:50:05 +09:00
NoteDeleteService.ts enhance(backend): リモートサーバーのチャート生成を無効にするオプションを追加 2023-03-24 19:08:08 +09:00
NotePiningService.ts refactor: fix types 2023-02-12 18:47:30 +09:00
NoteReadService.ts enhance(backend): チャンネルの既読管理を削除 2023-04-05 07:52:49 +09:00
NotificationService.ts fix types 2023-04-14 13:50:05 +09:00
PollService.ts refactor: remove all unused imports (#9951) 2023-02-16 23:09:41 +09:00
ProxyAccountService.ts refactor: remove all unused imports (#9951) 2023-02-16 23:09:41 +09:00
PushNotificationService.ts fix types 2023-04-14 13:50:05 +09:00
QueryService.ts feat: Per-user renote mute (#10249) 2023-03-08 08:56:09 +09:00
QueueModule.ts enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
QueueService.ts enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
ReactionService.ts perf(backend): cache local custom emojis 2023-04-06 11:14:43 +09:00
RelayService.ts perf(backend): cache local custom emojis 2023-04-06 11:14:43 +09:00
RemoteLoggerService.ts refactor: remove all unused imports (#9951) 2023-02-16 23:09:41 +09:00
RemoteUserResolveService.ts enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
RoleService.ts fix types 2023-04-14 13:50:05 +09:00
S3Service.ts regionが空文字列のときはundefinedとする (#10410) 2023-03-25 18:45:14 +09:00
SignupService.ts feat: preserved usernames 2023-04-29 17:03:14 +09:00
TwoFactorAuthenticationService.ts chore: fix import position 2022-12-04 17:05:32 +09:00
UserBlockingService.ts feat: queueing bulk follow/unfollow and block/unblock (#10544) 2023-04-12 09:13:58 +09:00
UserFollowingService.ts enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
UserKeypairService.ts fix types 2023-04-14 13:50:05 +09:00
UserListService.ts feat: queueing bulk follow/unfollow and block/unblock (#10544) 2023-04-12 09:13:58 +09:00
UserMutingService.ts fix 2023-04-05 13:50:05 +09:00
UserSuspendService.ts enhance: account migration (#10592) 2023-04-30 00:09:29 +09:00
UtilityService.ts enhance: Judge instance block by endsWith (#9263) 2023-01-13 18:21:07 +09:00
VideoProcessingService.ts enhance(server): 動画サムネイルの縦の長さを最大422pxにする 2023-04-02 15:49:07 +00:00
WebfingerService.ts enhance(dev): non-production環境でhttpサーバー間でもユーザー、ノートの連合が可能なように (#10717) 2023-04-29 23:26:47 +09:00
WebhookService.ts fix types 2023-04-14 13:50:05 +09:00