summaryrefslogtreecommitdiff
path: root/packages/backend (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'develop' of https://github.com/misskey-dev/misskey into developsyuilo2024-02-223-6/+14
|\
| * fix: 禁止キーワードを含むノートがDelayed ↵anatawa122024-02-223-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | Queueに追加されて再処理される問題 (#13428) * refactor: use IdentifiableError instead of NoteCreateService.ContainsProhibitedWordsError * fix: notes with prohibited words are reprocessed with delay * docs(changelog): 禁止キーワードを含むノートがDelayed Queueに追加されて再処理される問題 * lint: fix lint errors * fix: rethrowするべきなのにrethrowし忘れていたのを修正
* | enhance: ↵syuilo2024-02-227-4/+54
|/ | | | サーバーごとにモデレーションノートを残せるように
* fix: Bump sharp to 0.33.2 (#13391)tamaina2024-02-212-6/+7
|
* refactor(backend): `ReactionService.prototype.convertLegacyReactions` (#13375)okayurisotto2024-02-212-24/+66
| | | | | | | | | | | | | | | | | | | | | | | | | * add unit tests * cleanup unnecessary type assertions * `convertedReaction`変数の定義と変換表に対する存在確認処理の整理 * `count`変数の定義とループ処理での`Object.entries()`の活用 * 条件式の整理 * `Array.prototype.reduce`を使うように * `Array.prototype.reduce`を使うように * 配列操作を1つのメソッドチェーンに整理 これまでの実装では、`decodeReaction`の返り値が同一になる異なる入力値が同時に複数個存在した場合、後ろのもので上書きされてしまっていたはず。 これからの実装では、後ろのものは前のものに加算される。 (実際にこの挙動の変更が問題になるシチュエーションはまずないはず。) * add unit test * ドキュメントコメントの追加と型定義の調整
* fix: ↵anatawa122024-02-191-0/+16
| | | | syuilo/misskey時代から使用してるサーバーが改変したバージョンだと誤判定される問題 (DB migrationで修正) (#13389)
* fix: nodeinfoにenableMcaptchaとenableTurnstileが無い (#13387)anatawa122024-02-192-0/+4
|
* fix: allow moderators see role assigned users; fix #13301 (#13315)Cocoa Hoto2024-02-171-1/+1
|
* fix of 9a70ce8f5ea9df00001894809f5ce7bc69b14c8asyuilo2024-02-171-1/+1
| | | | Co-Authored-By: RyotaK <49341894+Ry0taK@users.noreply.github.com>
* feat: license violation protection (#13285)Acid Chicken (硫酸鶏)2024-02-176-8/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * spec(frontend): aboutページにリポジトリ・フィードバックのURLを表示させる Cherry-picked from MisskeyIO#441 Cherry-picked from MisskeyIO#438 * feat: license violation protection * build: fix typo * build: fix typo * fix: farewell to the static type land * fix: key typo * fix: import typo * fix: properly interpret `prominently` * docs: add disclaimer * docs: update CHANGELOG * chore: add gap --------- Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* Merge pull request from GHSA-qqrm-9grj-6v32tamaina2024-02-178-29/+157
| | | | | | | | | | | | | | | | | | | | | | | | | * maybe ok * fix * test wip * :v: * fix * if (res.ok) * validateContentTypeSetAsJsonLD * 条件を考慮し直す * その他の+json接尾辞が付いているメディアタイプも受け容れる * https://github.com/misskey-dev/misskey-ghsa-qqrm-9grj-6v32/pull/1#discussion_r1490999009 * add `; profile="https://www.w3.org/ns/activitystreams"` * application/ld+json;
* refactor(backend): remove/replace deprecated type deps (#13252)zyoshoka2024-02-164-6/+4
|
* fix typesyuilo2024-02-161-1/+1
|
* fixsyuilo2024-02-161-2/+2
|
* refactor(backend): misc/cacheをシンプルな実装に戻したsyuilo2024-02-162-65/+17
|
* リモートユーザーが復活してもキャッシュにより該当ユ ↵MeiMei2024-02-163-12/+33
| | | | | | | | | | | | | ザーのActivityが受け入れられないのを修正 Fix #13273 (#13275) * リモートユーザーが復活してもキャッシュにより該当ユーザーのActivityが受け入れられないのを修正 Fix #13273 * CHAGELOG * Use Redis event --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* fix(backend): add missing schemas and fix incorrect schemas (#13295)zyoshoka2024-02-1626-64/+497
| | | | | | | | | | | | | | | * fix(backend): add missing schemas and fix incorrect schemas * fix: ci * fix: ci (本命) * fix: run `pnpm build-misskey-js-with-types` * fix: typos * fix: role-condition-formula-value contains `id` * fix: incorrect schema
* feat(backend): ↵Kisaragi2024-02-161-3/+3
| | | | | | | | | | | likeOnlyなどでハートにフォールバックする際異体字セレクタがない方に揃える (#13299) * feat(backend): likeOnlyなどでハートにフォールバックする際異体字セレクタがない方に揃える close #13298 * Update ReactionService.ts * chore(backend): prefer single quote for string literal
* (re) update SPDX-FileCopyrightTexttamaina2024-02-131107-1109/+1109
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-131107-1172/+1174
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* perf: omit search for immutable static requests (#13265)Acid Chicken (硫酸鶏)2024-02-133-23/+47
| | | | | | | | | | | | | * perf: omit search for immutable static requests * perf: also applies to /files * fix: exclude /proxy * /files/:key/*を301 redirectに --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* enhance: 禁止ワードはリモートノートも対象に (#13280)tamaina2024-02-133-6/+5
| | | Resolve #13279
* Merge branch 'develop' of https://github.com/misskey-dev/misskey into developsyuilo2024-02-121-0/+8
|\
| * feat: provide tarball (#13260)Acid Chicken (硫酸鶏)2024-02-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | * feat: provide tarball * build: pack on build-assets * chore: use ignore-walk * chore: debug * build: dependencies
* | update SPDX-FileCopyrightTextsyuilo2024-02-121107-1174/+1172
|/
* update depssyuilo2024-02-091-5/+5
|
* fix: ↵おさむのひと2024-02-099-29/+164
| | | | | | | 特定文字列を含むノートを投稿できないようにする管理画面用設定項目を追加 (#13210) * fix: 特定文字列を含むノートを投稿できないようにする管理画面用設定項目を追加 * Serviceでチェックするように変更
* refactor(backend): exist -> exists (#13203)かっこかり2024-02-0840-64/+64
| | | | | * refactor(backend): exist -> exists * fix
* Enhance: 連合向けのノート配信を軽量化 (#13192)MeiMei2024-02-075-16/+80
| | | | | | | | | * AP HTML表現をシンプルに * a * CHANGELOG * リンク
* AP Key の JSON-LD 表現を修正 (#13170)MeiMei2024-02-061-0/+1
|
* Enhance(frontend): ↵1Step6212024-02-062-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | フロント側でもリアクション権限のチェックをするように (#13134) * フロント側でもリアクション権限のチェックをするように * update CHANGELOG.md * lint fixes * remove unrelated diffs * deny -> reject denyは「(信用しないことを理由に)拒否する」という意味らしい * allow -> accept * EmojiSimpleにlocalOnlyを含めるように * リアクション権限のない絵文字は打てないように(ダイアログを出すのではなく) * regenerate type definitions * lint fix * remove unused locales * remove unnecessary async
* keep cached avatar&banner when refresh fails to get new values (#13145)Gianni Ceccarelli2024-02-041-9/+26
| | | | | | | | | | | | | | | | | * keep cached avatar&banner when refresh fails to get new values when the remote explicitly tells us a user image is gone, we remove our cached value, but if we fail to get the image, we keep whatever value we already have this should minimise the problem of avatars randomly disappearing * autogen bits * pnpm run build-misskey-js-with-types --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* ignore `instance.actor` when checking if there are local users (#13146)Gianni Ceccarelli2024-02-044-13/+20
| | | | | | | | | | | | | | | | | | | * 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
* fix(backend): ↵atsuchan2024-02-041-0/+2
| | | | | メール配信機能が無効ならばメールを送ることのないように (#13152) Do not send email if email delivery is disabled
* fix: api-docが開けない問題を修正 (#13132)yukineko2024-02-025-39/+43
| | | | | | | | | | | * refactor: 自己参照を使用している箇所に`selfRef`を持たせるように * feat: スキーマ生成時に自己参照を含むかどうかを指定できるように * fix: api.jsonにselfRefが含まれているのを修正 * refactor: 他の箇所と同様にselfRefの除去を行うように * remove: 不要なimportを削除
* fix(backend): ↵おさむのひと2024-02-021-0/+16
| | | | | | | | | "誰でも新規登録できるようにする"の初期値をOFFにする (#13130) * fix(backend): "誰でも新規登録できるようにする"の初期値をOFFにする * fix CHANGELOG.md * fix
* fix: Hide reactions of all remote users / feat: moderators can see reactions ↵tamaina2024-02-012-4/+22
| | | | | | | | | | | | | of all users (#13128) * fix: Hide reactions of all remote users https://github.com/misskey-dev/misskey/issues/12964 * feat: Moderators can see reactions of all users https://github.com/misskey-dev/misskey/issues/13127 * modify CHANGELOG.md * fix iAmModerator
* refactor(backend): User関連のスキーマ/型の指定を強くする ↵zyoshoka2024-01-3157-141/+113
| | | | | | | | | | | | | | | | | (#12808) * refactor(backend): User関連のスキーマ/型の指定を強くする * refactor(backend): `pack()`の引数にスキーマを指定するように * chore: fix ci * fix: 変更漏れ * fix ci --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* update depssyuilo2024-01-301-13/+13
|
* refactor: frontendのcomponentsの型エラーを改善 (#12926)yukineko2024-01-3015-203/+696
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add: safeFloatParserを追加 * fix: 欠けていた型を追加 * refactor: pageBlockTypesをjson-schemaに移植 * refactor: components/global内の型エラーが出ている箇所を修正 * lint: fix null check style * refactor: fix type error * refactor: fix some type errors * fix: 翻訳が抜けていた箇所を修正 * refactor: getJsonSchemaで正しいスキーマが返されるように修正 * fix: MkChartの型エラーとbytesオプションが機能していない問題を修正 * fix(misskey-js): `drive`->`folderUpdated`のpayloadの型が間違っていたのを修正 * refactor: fix some type errors * change: Captcha読み込み中の文言をLoadingに変更 * refactor(backend/misskey-js): MainEventの型を改善 * refactor: chartjs-plugin-gradientが二重でpluginに登録されていたのを修正 * update: misskey-js.api.md * refactor: fix some type errors * fix: backendのtypecheckが落ちていたのを修正 * update: misskey-js.api.md * add: json-schemaのnoteにpollの型定義を追加 * refactor: noteのjson-schemaの型を改善 * refactor: MkPoll * refactor: fix some type errors * change: UserLiteにisLockedを持たせるように * fix: notificationスキーマにroleが含まれていないのを修正 * Revert "change: UserLiteにisLockedを持たせるように" This reverts commit 1bb0c8e7a9b19a4e9f21bf7381712b98f27672a5. * fix: フォロー通知から鍵垢へのフォローを行うと処理中のまま止まってしまう問題を修正 * refactor: noteスキーマのvisibilityにenumを追加 * change: deepCloneのCloneableTypeにundefinedを追加 * refactor: fix some type errors * refactor: `allowEmpty: false`を使用していた箇所を`minLength: 1`に置き換え * enhance: API 'retension' のresponseの型を追加 * fix: Chart関連のtooltipが正しい位置に表示されない問題を修正 * refactor: fix some type errors * fix: 型情報が不足していたのを修正 * enhance: announcementスキーマにenumを追加 * enhance: ロールポリシーの型定義をRoleServiceからjson-schemaに移植 * refactor: policiesを`ref: RolePolicies`に統一 * fix: API `meta` のレスポンスの型にpoliciesが含まれていないのを修正 * refactor: fix some type errors * fix: backendのlintが落ちているのを修正 * fix: MkFoldableSectionの開閉時のanimationが適用されていない問題を修正 * fix: backendのtypecheckが落ちているのを修正 * update: run build-misskey-js-with-types * fix: MkDialogのmount時に文字数制限の判定が行われない問題を修正 * update: CHANGELOG.md * refactor: MkUserSelectDialogの型を改善 * fix: deepCloneでundefinedはcloneしないように (#9207) * change: frontendのcloneをbackend側にも反映 * update: CHANGELOG.md * fix: RoleServiceからPackを通して型RolePoliciesに依存させないように * Update packages/frontend/src/scripts/get-note-summary.ts * revert RoleService.ts changes * change: optional chaining -> non-null assertion * remove: unused import * fix: propsで渡されたuserがUserLiteの場合に意図しない動作になってしまうのを修正 * change: fix null check style * refactor: fix type error * change: fix null check style * Update packages/frontend/src/components/MkDrive.vue Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> * refactor: css moduleでglobalを使わないように * refactor: roleのiconUrlは必ず存在するものとして扱うように * enhance: MenuButtonのactiveにcomputedを受け付けられるように * Update packages/frontend/src/components/MkNotePreview.vue * Update MkWindow.vue * refactor: notification.noteは必ず存在するものとして扱うように * Update packages/frontend/src/components/MkNotification.vue Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> * fix: MkSignupDialogでdoneのemit時にresを含んでいなかったのを修正 * Update packages/frontend/src/scripts/clone.ts Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> * refactor: 不要な返り値の型を削除 * refactor: 不要なnullチェックを削除 * update: misskey-js-autogen * update: clone.ts * refactor * Update MkNotification.vue * Update MkNotification.vue * :v: * Update MkNotification.vue * Update MkNotification.vue * Update MkNotification.vue * Update MkNotifications.vue * Update MkUserSetupDialog.Profile.vue * Update MkUserCardMini.vue * :v: * Update MkMenu.vue --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* fix(backend): Fix typos in job configurations (#13086)woxtu2024-01-282-8/+8
| | | | | * Fix typos * Update CHANGELOG
* fix(reversi/backend): refactor and fixessyuilo2024-01-241-6/+7
|
* enhance(reversi): 変則なしマッチングを可能にsyuilo2024-01-246-10/+59
|
* enhance(reversi): improve matching systemsyuilo2024-01-241-10/+9
|
* fix(reversi): wait redis operation to improve stabilitysyuilo2024-01-241-1/+1
|
* perf(reversi): set expire matchSpecific and matchAnysyuilo2024-01-241-2/+8
|
* enhance(reversi): tweak MATCHING_TIMEOUT_MSsyuilo2024-01-241-1/+1
|
* fix of 65557d5f27044bd90c538266fde1e6b91b696f80syuilo2024-01-241-5/+5
|
* enhance(reversi): more robust matching processsyuilo2024-01-243-12/+57
|
* enhance(reversi): 準備中の自分の対局も一覧に表示するようにsyuilo2024-01-241-1/+2
|