summaryrefslogtreecommitdiff
path: root/packages/backend/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* enhance: ↵かっこかり2024-07-301-1/+8
| | | | | | | 管理画面でアーカイブにしたお知らせを表示・編集できるように (#14286) * enhance: 管理画面でアーカイブにしたお知らせを表示できるように * Update Changelog
* fix(backend): type(schema) of reactionAcceptance was wrong (#14317)Sayamame-beans2024-07-301-1/+1
|
* feature: ユーザ作成時にSystemWebhookを発信できるようにする ↵おさむのひと2024-07-294-3/+30
| | | | | | | (#14321) * feature: ユーザ作成時にSystemWebhookを発信できるようにする * fix CHANGELOG.md
* Fix(frontend): ↵Sayamame-beans2024-07-281-0/+1
| | | | | | | | | | | | | 下書き/削除して編集で保持されない項目があった問題を修正 (#14285) * chore(frontend): reorder assignments * fix(frontend): visibleUserIds is not kept when deleteAndEdit * fix(frontend): quoteId is not kept on draft * fix(frontend): reactionAcceptance is not kept for draft/deleteAndEdit * docs(changelog): update changelog
* fix(backend): avoid caching remote user's HTL when receiving Note (#13772)zyoshoka2024-07-251-4/+7
| | | | | | | | | | | * fix(backend): avoid caching remote user's HTL when receiving Note * test(backend): add test for FFT * Update CHANGELOG.md --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix(backend): avoid notifying to remote users on local (#13774)zyoshoka2024-07-253-7/+15
| | | | | | | | | | | | * fix(backend): avoid notifying to remote users on local * Update CHANGELOG.md * refactor: check before calling method --------- Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* revert 5f88d56d96syuilo2024-07-2036-887/+606
| | | | バグがある(かつすぐに修正できそうにない) & まだレビュー途中で意図せずマージされたため
* kill any from streaming API Implementation (#14251)anatawa122024-07-1820-83/+153
| | | | | | | | | | | | | | | * chore: add JsonValue type * refactor: kill any from Connection.ts * refactor: fix StreamEventEmitter contains undefined instead of null * refactor: kill any from channels * docs(changelog): Fix: Steaming APIが不正なデータを受けた場合の動作が不安定である問題 * fix license header * fix lints
* fix(backend): ↵かっこかり2024-07-184-17/+72
| | | | | | | | | | | | | | | | | | | | | リノートミュートがキャッシュが切れるまで効かない問題を修正 (#14242) * Fix: RenoteMuteがキャッシュが切れるまで効かない問題を修正 (cherry picked from commit e9601029b52e0ad43d9131b555b614e56c84ebc1) * update changelog * :art: * remove unused import * 消したときもキャッシュを飛ばすように * lint --------- Co-authored-by: mattyatea <mattyacocacora0@gmail.com>
* fix: ↵anatawa122024-07-181-0/+1
| | | | | ソーシャルタイムラインにローカルタイムラインに表示される自分へのリプライが表示されない問題を修正 (#13978) Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>
* perf(federation): Ed25519署名に対応する (#13464)tamaina2024-07-1836-606/+887
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 1. ed25519キーペアを発行・Personとして公開鍵を送受信 * validate additionalPublicKeys * getAuthUserFromApIdはmainを選ぶ * :v: * fix * signatureAlgorithm * set publicKeyCache lifetime * refresh * httpMessageSignatureAcceptable * ED25519_SIGNED_ALGORITHM * ED25519_PUBLIC_KEY_SIGNATURE_ALGORITHM * remove sign additionalPublicKeys signature requirements * httpMessageSignaturesSupported * httpMessageSignaturesImplementationLevel * httpMessageSignaturesImplementationLevel: '01' * perf(federation): Use hint for getAuthUserFromApId (#13470) * Hint for getAuthUserFromApId * とどのつまりこれでいいのか? * use @misskey-dev/node-http-message-signatures * fix * signedPost, signedGet * ap-request.tsを復活させる * remove digest prerender * fix test? * fix test * add httpMessageSignaturesImplementationLevel to FederationInstance * ManyToOne * fetchPersonWithRenewal * exactKey * :v: * use const * use gen-key-pair fn. from '@misskey-dev/node-http-message-signatures' * update node-http-message-signatures * fix * @misskey-dev/node-http-message-signatures@0.0.0-alpha.11 * getAuthUserFromApIdでupdatePersonの頻度を増やす * cacheRaw.date * use requiredInputs https://github.com/misskey-dev/misskey/pull/13464#discussion_r1509964359 * update @misskey-dev/node-http-message-signatures * clean up * err msg * fix(backend): fetchInstanceMetadataのLockが永遠に解除されない問題を修正 Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com> * fix httpMessageSignaturesImplementationLevel validation * fix test * fix * comment * comment * improve test * fix * use Promise.all in genRSAAndEd25519KeyPair * refreshAndprepareEd25519KeyPair * refreshAndfindKey * commetn * refactor public keys add * digestプリレンダを復活させる RFC実装時にどうするか考える * fix, async * fix * !== true * use save * Deliver update person when new key generated (not tested) https://github.com/misskey-dev/misskey/pull/13464#issuecomment-1977049061 * 循環参照で落ちるのを解消? * fix? * Revert "fix?" This reverts commit 0082f6f8e8c5d5febd14933ba9a1ac643f70ca92. * a * logger * log * change logger * 秘密鍵の変更は、フラグではなく鍵を引き回すようにする * addAllKnowingSharedInboxRecipe * nanka meccha kaeta * delivre * キャッシュ有効チェックはロック取得前に行う * @misskey-dev/node-http-message-signatures@0.0.3 * PrivateKeyPem * getLocalUserPrivateKey * fix test * if * fix ap-request * update node-http-message-signatures * fix type error * update package * fix type * update package * retry no key * @misskey-dev/node-http-message-signatures@0.0.8 * fix type error * log keyid * logger * db-resolver * JSON.stringify * HTTP Signatureがなかったり使えなかったりしそうな場合にLD Signatureを活用するように * inbox-delayed use actor if no signature * ユーザーとキーの同一性チェックはhostの一致にする * log signature parse err * save array * とりあえずtryで囲っておく * fetchPersonWithRenewalでエラーが起きたら古いデータを返す * use transactionalEntityManager * fix spdx * @misskey-dev/node-http-message-signatures@0.0.10 * add comment * fix * publicKeyに配列が入ってもいいようにする https://github.com/misskey-dev/misskey/pull/13950 * define additionalPublicKeys * fix * merge fix * refreshAndprepareEd25519KeyPair → refreshAndPrepareEd25519KeyPair * remove gen-key-pair.ts * defaultMaxListeners = 512 * Revert "defaultMaxListeners = 512" This reverts commit f2c412c18057a9300540794ccbe4dfbf6d259ed6. * genRSAAndEd25519KeyPairではキーを直列に生成する? * maxConcurrency: 8 * maxConcurrency: 16 * maxConcurrency: 8 * Revert "genRSAAndEd25519KeyPairではキーを直列に生成する?" This reverts commit d0aada55c1ed5aa98f18731ec82f3ac5eb5a6c16. * maxWorkers: '90%' * Revert "maxWorkers: '90%'" This reverts commit 9e0a93f110456320d6485a871f014f7cdab29b33. * e2e/timelines.tsで個々のテストに対するtimeoutを削除, maxConcurrency: 32 * better error handling of this.userPublickeysRepository.delete * better comment * set result to keypairEntityCache * deliverJobConcurrency: 16, deliverJobPerSec: 1024, inboxJobConcurrency: 4 * inboxJobPerSec: 64 * delete request.headers['host']; * fix * // node-fetch will generate this for us. if we keep 'Host', it won't change with redirects! * move delete host * modify comment * modify comment * fix correct → collect * refreshAndfindKey → refreshAndFindKey * modify comment * modify attachLdSignature * getApId, InboxProcessorService * TODO * [skip ci] add CHANGELOG --------- Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com> Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>
* chore(backend): registed -> registered (#14213)Kisaragi2024-07-151-2/+2
| | | | | * chore(backend): registed -> registered * Update CHANGELOG.md
* enhance(backend): Load settings via environment variables (#14179)Souma2024-07-141-6/+10
| | | | | | | | | | | | | | | | | * feat(backend): Load settings via environment variables If they're not loaded from the config file. * chore(docker): Add hints for environment variables It supports users to know about them. * docs(changelog): Add the description about this change Users can notice what's changed by this PR. * style(backend): Fix code syntax To pass the linter.
* ci: cache eslint (#14204)Kisaragi2024-07-141-0/+1
| | | | | | | * ci: cache eslint * dummy commit to trigger * fix syntax error
* fix(backend): ↵Sayamame-beans2024-07-142-2/+21
| | | | | | | | | | | | | | | ユーザーのリアクション一覧でミュート/ブロックが機能していなかった問題を修正 (#14100) * fix: mute/block was not considered on users/reactions * docs(changelog): update changelog * chore: Apply suggestion from code review Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com> --------- Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com>
* enhance(backend): ↵syuilo2024-07-141-1/+1
| | | | | | configにsignToActivityPubGetの指定が無い場合trueと見做すように trueの方が望ましいため
* test(backend): kill many `any` in backend test (partial) (#14054)Kisaragi2024-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * kill any on utils:api * kill any on timeline test * use optional chain to kill TS2532 on timeline test 変更前: 該当ノートが見つからなければundefinedに対するプロパティアクセスとしてテストがクラッシュ 変更後: 該当ノートが見つからなければoptional chainがundefinedとして評価されるが、strictEqualの右辺がnon-nullableなためアサーションに失敗しテストがクラッシュ * kill `as any` for ApMfmService * kill argument any for api-visibility * kill argument any across a few tests * do not return value that has yielded from `await`-ing `Promise<void>` * force cast * runtime non-null assertion to coerce * rewrite `assert.notEqual(expr, null)` to `assert.ok(expr)` こうすることでassertion type扱いになり、non-nullableになる * change return type of `failedApiCall` to `void` 戻り値がどこにも使われていない * split bindings for exports.ts 型が合わなくて文句を言ってくるので適切に分割 * runtime non-null assertion * runtime non-null assertion * 何故かうまく行かないので、とりあえずXORしてみる * Revert "何故かうまく行かないので、とりあえずXORしてみる" This reverts commit 48cf32c930924840d0892af92d71b9437acb5844. * castAsErrorで安全ではないキャストを隠蔽 * 型アサーションの追加 * 型アサーションの追加 * 型アサーションの追加 * voidで値を返さない * castAsError * assert.ok => kill nullability * もはや明示的な型の指定は必要ない * castAsError * castAsError * 型アサーションの追加 * nullableを一旦抑止 * 変数を分離して型エラーを排除 * 不要なプロパティを削除する処理を隠蔽してanyを排除 * Repository type * simple type * assert.ok => kill nullability * revert `as any` drop reverts fe95c05b3f53266108128680d9358a3796844232 partialy * test: fix invalid assertion partially revert b99b7b5392d9d20c81dfee1346ba8b33ff9e1fbb * test: 52d8a54fc72b886fecb30a736b3ccf5057ea2a0c により型が合うようになった部分の`as any`を除去 * format * test: apply https://github.com/misskey-dev/misskey/pull/14054#discussion_r1672369526 (part 1) * test: use non-null assertion to suppress too many error * Update packages/backend/test/utils.ts Co-authored-by: anatawa12 <anatawa12@icloud.com> --------- Co-authored-by: anatawa12 <anatawa12@icloud.com>
* Feat: ↵Sayamame-beans2024-07-144-6/+32
| | | | | | | | | | | | | | | | | | | | | | | ユーザーのアイコン/バナーの変更可否をロールで設定可能に (#14078) * feat: implement role policy "canUpdateBioMedia" * docs(changelog): update changelog * docs(changelog): update changelog * chore: regenerate misskey-js type definitions * chore: Apply suggestion from code review Co-authored-by: anatawa12 <anatawa12@icloud.com> * chore: fix unnecessarily strict inequality check * chore: policies should be gotten only once --------- Co-authored-by: anatawa12 <anatawa12@icloud.com>
* fix(backend): ↵かっこかり2024-07-141-5/+9
| | | | | | | | | | | | | | | | | 一般ユーザーから見たユーザーのバッジの一覧に公開されていないものが含まれることがある問題を修正 (#14195) * enhance(backend): 公開バッジのみをpackするように (MisskeyIO#652) (cherry picked from commit b8a90659f35fef49d1d00fb2f9b152226c97643c) * Update Changelog * fix * Update UserEntityService.ts --------- Co-authored-by: CyberRex <26585194+CyberRex0@users.noreply.github.com>
* parse `notRespondingSince` from redis instance cache (#14079)Gianni Ceccarelli2024-07-131-0/+1
| | | | if we don't do this, we'll get a string, and `DeliverProcessorService` will error out `i.notRespondingSince.getTime is not a function`
* fix(backend): ↵syuilo2024-07-131-3/+18
| | | | | | デフォルトテーマに無効なテーマコードを入力するとUIが使用できなくなる問題を修正 Fix #13955
* fix: ↵おさむのひと2024-07-123-90/+222
| | | | | | | | | | | | | サジェストされるユーザのリストアップ方法を見直し (#14180) * fix: サジェストされるユーザのリストアップ方法を見直し * fix comment * fix CHANGELOG.md * ノートの無いユーザ(updatedAtが無いユーザ)は含めないらしい * fix test
* fix(backend): api-docをScalarに変更 (#14152)かっこかり2024-07-092-2/+1
| | | | | * fix(backend): api-docをScalarに変更 * Update Changelog
* fix(backend): 名前を空白文字列だけにできる問題を修正 (#14119)かっこかり2024-07-071-1/+8
| | | | | | | | | | | | | | | | | | | * fix(backend): 名前を空白文字列だけにできる問題を修正 * Update Changelog * fix test * Unicodeを含める * fix * ユーザー名がUnicode制御文字とスペースのみで構成される場合はnullに * Revert "ユーザー名がUnicode制御文字とスペースのみで構成される場合はnullに" This reverts commit 6c752a69c0d3649072e7e4ed30025183bceb48f9. * [ci skip] changelog typo
* fix(frontend): ↵かっこかり2024-07-071-3/+9
| | | | サーバーサイドbootでエラー画面の描画時にDOMが初期化できていないことがあるのを修正 (#14139)
* fix(backend): parse5関係の型のimport方法を変更 (#14146)おさむのひと2024-07-071-24/+20
|
* fix import pathsyuilo2024-07-061-1/+1
|
* test(backend): goodbye, Lenna (#14111)Kisaragi2024-07-022-2/+2
|
* fix(backend): fix creating reactions bugs (#13901)zyoshoka2024-06-222-1/+14
| | | | | | | | | | | | | | | | | * fix(backend): add fallback for empty string when creating reaction * fix(backend): prohibit reactions to Renote * test(backend): add some tests for `notes/reactions/create` endpoint * Update CHANGELOG.md * lint * Update CHANGELOG.md --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* refactor: say bye to the weird groupBy friends (#13975)Kisaragi2024-06-221-38/+0
| | | | | * refactor(frontend): say bye to the weird groupBy friends * refactor(backend): say bye to the weird groupBy friends
* fix(backend): ↵かっこかり2024-06-221-1/+1
| | | | | | | | | 自分以外のクリップ内のノート個数が見えるのを修正 (#14065) * fix(backend): 自分以外のクリップ内のノート個数が見えることがあるのを修正 * Update Changelog * fix
* refactor: api/*/update系の必須キーを最低限に (#13824)yupix2024-06-226-48/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor: clips/updateの必須キーをclipIdのみに * refactor: admin/roles/update の必須キーをroleIdのみに * feat: pages/update の必須キーをpageIdのみに * refactor: gallery/posts/update の必須キーをpostidのみに * feat: misskey-jsの型を更新 * feat: i/webhooks/updateの必須キーをwebhookIdのみに * feat: admin/ad/updateの必須キーをidのみに * feat: misskey-jsの型を更新 * chore: update CHANGELOG.md * docs: update CHANGELOG.md * fix: secretが更新できなくなる場合がある Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com> * Update packages/backend/src/server/api/endpoints/gallery/posts/update.ts --------- Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix(backend): ↵Kisaragi2024-06-221-1/+5
| | | | | | | | | | | | | | | | | | | フィードのノートのMFMはHTMLにレンダーしてから返す (#14006) * fix(backend): フィードのノートのMFMはHTMLにレンダーしてから返す (test wip) * chore: beforeEachを使う? * fix: プレーンテキストにフォールバックしてMFMが含まれていないか調べる方針を実装 * fix: application/jsonだとパースされるのでその作用をキャンセル * build: fix lint error * docs: update CHANGELOG.md --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix: ↵anatawa122024-06-221-0/+6
| | | | | notRespondingSinceが実装される前に不通になったインスタンスが自動的に配信停止にならない (#14059) Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix(backend): fallback if `sinceId` is older than the oldest in cache when ↵zyoshoka2024-06-221-8/+4
| | | | | | | | | using FTT (#14061) * fix(backend): fallback if `sinceId` is older than the oldest in cache when using FTT * Update CHANGELOG.md * chore: fix description of test
* refactorsyuilo2024-06-211-5/+4
|
* remove unused filessyuilo2024-06-213-34/+0
|
* remove unused filesyuilo2024-06-211-25/+0
|
* refactor(backend): remove unnecessary isNotNull sugarsyuilo2024-06-2122-65/+36
|
* Fix(backend): Limit antenna/webhook/list to exact amount (#14036)Ryu jongheon2024-06-187-8/+8
| | | | ... not +1 * Update antennas/clips e2e test
* refactor(backend): get column names from metadata (#13943)Acid Chicken2024-06-151-25/+5
| | | | | | | | | * ci: enable * chore: stop when generated column found * chore: get column names from metadata * ci: disable
* fix rate limit check never ends (#13994)anatawa122024-06-151-1/+1
|
* feat(backend): report `Retry-After` if client hit rate limit (#13949)Kisaragi2024-06-132-23/+40
| | | | | * feat(backend): report `Retry-After` if client hit rate limit * refactor(backend): fix lint error
* feat: ↵おさむのひと2024-06-0849-317/+2736
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 通報を受けた際にメールまたはWebhookで通知を送出出来るようにする (#13758) * feat: 通報を受けた際にメールまたはWebhookで通知を送出出来るようにする * モデログに対応&エンドポイントを単一オブジェクトでのサポートに変更(API経由で大量に作るシチュエーションもないと思うので) * fix spdx * fix migration * fix migration * fix models * add e2e webhook * tweak * fix modlog * fix bugs * add tests and fix bugs * add tests and fix bugs * add tests * fix path * regenerate locale * 混入除去 * 混入除去 * add abuseReportResolved * fix pnpm-lock.yaml * add abuseReportResolved test * fix bugs * fix ui * add tests * fix CHANGELOG.md * add tests * add RoleService.getModeratorIds tests * WebhookServiceをUserとSystemに分割 * fix CHANGELOG.md * fix test * insertOneを使う用に * fix * regenerate locales * revert version * separate webhook job queue * fix * :art: * Update QueueProcessorService.ts --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* 配信停止したインスタンス一覧が見れなくなる問題を修 ↵Porlam Nicla2024-06-071-2/+2
| | | | | | | (#13945) * 配信停止したインスタンス一覧が見れなくなる問題を修正 * Update CHANGELOG.md
* enhance(backend): improve sentry integrationsyuilo2024-06-072-0/+8
|
* fix(backend): ↵taichan2024-06-071-3/+3
| | | | | | | チャート生成時にinstance.isSuspendedが読まれてしまう問題の修正 (#13951) * fix(backend): use sustensionState instead of isSuspended * Update CHANGELOG.md
* enhance(backend): improve sentry integrationsyuilo2024-06-061-8/+8
|
* lint fixessyuilo2024-06-063-3/+3
|
* enhance(backend): improve sentry integrationsyuilo2024-06-061-7/+56
|