summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/ReactionService.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix(backend): RBTの修正 (#14621)かっこかり2024-09-241-13/+15
| | | | | | | | | * fix(backend): 絵文字の変換処理が不十分なのを修正 * enhance: リアクションバッファリングが無効になったら即bakeするように * attempt to fix test * fix
* fix rbt bug?syuilo2024-09-221-0/+1
|
* refactor/perf(backend): provide metadata statically (#14601)syuilo2024-09-221-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * Update ReactionService.ts * Update ApiCallService.ts * Update timeline.ts * Update GlobalModule.ts * Update GlobalModule.ts * Update NoteEntityService.ts * wip * wip * wip * Update ApPersonService.ts * wip * Update GlobalModule.ts * Update mock-resolver.ts * Update RoleService.ts * Update activitypub.ts * Update activitypub.ts * Update activitypub.ts * Update activitypub.ts * Update activitypub.ts * clean up * Update utils.ts * Update UtilityService.ts * Revert "Update utils.ts" This reverts commit a27d4be764b78c1b5a9eac685e261fee49331d89. * Revert "Update UtilityService.ts" This reverts commit e5fd9e004c482cf099252201c0c1aa888e001430. * vuwa- * Revert "vuwa-" This reverts commit 0c3bd12472b4b9938cdff2d6f131e6800bc3724c. * Update entry.ts * Update entry.ts * Update entry.ts * Update entry.ts * Update jest.setup.ts
* fix rbtsyuilo2024-09-211-5/+0
|
* Misskey® Reactions Buffering Technology™ (#14579)syuilo2024-09-201-24/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * Update ReactionsBufferingService.ts * Update ReactionsBufferingService.ts * wip * wip * wip * Update ReactionsBufferingService.ts * wip * wip * wip * Update NoteEntityService.ts * wip * wip * wip * wip * Update CHANGELOG.md
* feat: media silence (#13842)anatawa122024-07-301-2/+7
| | | | | | | | | | | | | | | | | | | | | * feat: media silence * fix: lint * feat: deny creating custom emoji reaction and using custom emoji from media silenced hosts * chore: メディアサイレンスの説明にカスタム絵文字の話を追加 * Update locales/ja-JP.yml Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com> * chore: update index.d.ts * docs(changelog): update changelog --------- Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>
* fix(backend): fix creating reactions bugs (#13901)zyoshoka2024-06-221-1/+7
| | | | | | | | | | | | | | | | | * 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(backend): `ReactionService.prototype.convertLegacyReactions` (#13375)okayurisotto2024-02-211-24/+25
| | | | | | | | | | | | | | | | | | | | | | | | | * add unit tests * cleanup unnecessary type assertions * `convertedReaction`変数の定義と変換表に対する存在確認処理の整理 * `count`変数の定義とループ処理での`Object.entries()`の活用 * 条件式の整理 * `Array.prototype.reduce`を使うように * `Array.prototype.reduce`を使うように * 配列操作を1つのメソッドチェーンに整理 これまでの実装では、`decodeReaction`の返り値が同一になる異なる入力値が同時に複数個存在した場合、後ろのもので上書きされてしまっていたはず。 これからの実装では、後ろのものは前のものに加算される。 (実際にこの挙動の変更が問題になるシチュエーションはまずないはず。) * add unit test * ドキュメントコメントの追加と型定義の調整
* 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-131-1/+1
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-131-1/+1
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* update SPDX-FileCopyrightTextsyuilo2024-02-121-1/+1
|
* refactor: make sure promises are settled before app shutdown (#12942)Kagami Sascha Rosylight2024-01-081-2/+3
| | | 👍
* fix(backend): ↵shiosyakeyakini2023-12-261-1/+1
| | | | | | 非センシティブのみ(リモートはいいねのみ)が昨日していない問題を修正 (#12801) (#12802) Co-authored-by: sorairo <sorairo@shiosyakeyakini.info> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactor and perf tweaksyuilo2023-10-191-1/+2
|
* fix(backend): fix of 1671575d5dsyuilo2023-10-191-2/+2
|
* perf(backend): ↵syuilo2023-10-191-0/+4
| | | | ノートのリアクション情報をキャッシュすることでDBへのクエリを削減
* Remove unnecessary nullish coalescing (#12058)woxtu2023-10-181-1/+1
|
* perf(backend): createdAtをidから取得するように & ↵syuilo2023-10-161-2/+1
| | | | 無駄なDateインスタンスの生成を避けるように
* enhance(backend): ↵syuilo2023-10-071-2/+6
| | | | 3日以内に投稿されたノートのみハイライト用スコア加算
* enhance(backend): 返信はハイライトに載らないようにsyuilo2023-10-071-4/+8
|
* feat: per user featured notessyuilo2023-10-061-1/+2
|
* enhance(backend): some tweakssyuilo2023-10-061-1/+1
|
* enhance(backend): improve featured systemsyuilo2023-10-061-3/+15
|
* feat: 通知の受信設定を強化syuilo2023-09-291-2/+1
|
* refactor(backend): update directory structure for modelssyuilo2023-09-201-3/+3
|
* update deps (#11820)syuilo2023-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update deps * fix * wip * wip * wip * Update docker-compose.yml.example * Delete reviewer-lottery.yml * Update RepositoryModule.ts * wip * wip * clean up * update deps * wip * wip
* refactor: prefix Mi for all entities (#11719)syuilo2023-08-161-9/+9
| | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * Update RepositoryModule.ts * wip * wip * wip * Revert "wip" This reverts commit c1c13b37d2aaf3c65bc148212da302b0eb7868bf.
* chore: ↵Shun Sakai2023-07-271-0/+5
| | | | | | | | | | | | | | 著作権とライセンスについての情報を各ファイルに追加する (#11348) * chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* feat: ↵syuilo2023-05-191-1/+6
| | | | センシティブなカスタム絵文字のリアクションを受け入れない設定を追加
* feat: ↵syuilo2023-05-181-19/+32
| | | | カスタム絵文字ごとにそれをリアクションとして使えるロールを設定できるように
* perf(backend): pre-compile regexpsyuilo2023-05-181-2/+5
|
* perf(backend): cache local custom emojissyuilo2023-04-061-21/+21
|
* add notesyuilo2023-04-051-0/+1
|
* enhance(backend): use :heart: for reaction fallbacksyuilo2023-03-241-8/+4
|
* enhance of f01e6ef6bfsyuilo2023-03-241-1/+5
|
* refactor(backend): integrate CreateNotificationService to NotificationServicesyuilo2023-03-161-26/+26
|
* feat: Reaction acceptance (#10256)syuilo2023-03-081-2/+6
| | | | | | | * wip * wip * デフォルト設定
* refactorsyuilo2023-02-131-4/+4
|
* refactor: fix typessyuilo2023-02-121-3/+3
|
* perf(server): cache blockingsyuilo2023-02-041-6/+5
|
* fix typosyuilo2023-02-041-3/+3
|
* fix: use || for emoji url fallback instead of ??tamaina2022-12-301-1/+2
|
* improve(backend): Skip note score incrementing when bots reacted (#9367)CyberRex2022-12-211-4/+4
| | | | | | | | | fix Improved code quality fix small fix
* chore: fix import positionsyuilo2022-12-041-1/+1
|
* refactor: introduce bindThis decorator to bind this automaticalysyuilo2022-12-041-0/+8
|
* refactorsyuilo2022-12-041-5/+5
|
* fix import typesyuilo2022-09-211-1/+1
|
* なんかもうめっちゃ変えたsyuilo2022-09-181-0/+340