summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints/notes/create.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use more bulk hints in NoteEntityService / UserEntityService, and run the ↵Hazelnoot2025-06-091-1/+1
| | | | packMany queries in parallel
* collapse empty `cw` to nullHazelnoot2025-03-031-1/+1
|
* ignore empty CW with creating / editing notesHazelnoot2025-03-031-1/+1
|
* add "reject quotes" toggle at user and instance levelHazelnoot2025-02-201-0/+8
| | | | | | + improve, cleanup, and de-duplicate quote resolution + add warning message when quote cannot be loaded + add "process error" framework to display warnings when a note cannot be correctly loaded from another instance
* add separate limits for CW lengthHazelnoot2024-10-261-2/+10
|
* separate character limits for local and remote notesHazel K2024-10-261-1/+1
|
* Merge remote-tracking branch 'misskey/master' into feature/2024.9.0dakkar2024-10-091-2/+0
|\
| * refactor/perf(backend): provide metadata statically (#14601)syuilo2024-09-221-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 length validationHazel K2024-10-031-1/+2
| |
* | Merge branch 'develop' into future-2024-05-31dakkar2024-06-131-2/+3
|\ \
| * | tweak the rate limit for `notes/create`dakkar2024-06-121-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | while fixing #467 #468, we changed the rate limit from 300/hour to 5/minute some people felt it was too low: they often boost notes in quick succession so here's a different approach: back to 300/hour, but not more than 1/second; this is the same settings that `notes/delete` has, BTW
* | | Merge branch 'develop' into future-2024-05-31dakkar2024-06-081-2/+2
|\| |
| * | rate limit note/reply/boost creation more tightlydakkar2024-06-071-2/+2
| | | | | | | | | | | | | | | 5/minute is the same as 300/hour on average, and still high enough that it shouldn't be a problem for most people
* | | Merge remote-tracking branch 'misskey/develop' into future-2024-04-25dakkar2024-04-251-3/+3
|\ \ \ | |/ / |/| / | |/
| * fix(backend): incorrect logic for determining whether Quote or not (#13700)zyoshoka2024-04-141-3/+3
| | | | | | | | | | | | | | | | | | * fix(backend): incorrect logic for determining whether Quote or not * Update CHANGELOG.md --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
| * メンションの最大数をロールごとに設定可能にする (#13343)Yuriha2024-02-291-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add new role policy: maximum mentions per note * fix * Reviewを反映 * fix * Add ChangeLog * Update type definitions * Add E2E test * CHANGELOG に説明を追加 --------- Co-authored-by: taichan <40626578+tai-cha@users.noreply.github.com>
| * fix(backend): ↵zyoshoka2024-02-291-0/+8
| | | | | | | | | | | | | | | | | | ダイレクトなノートに対してはダイレクトでしか返信できないように (#13477) * fix(backend): ダイレクトなノートに対してはダイレクトでしか返信できないように * Update CHANGELOG.md * test(backend): `notes/create`とWebSocket関連のテストを追加
* | merge upstream for 2024.2.1dakkar2024-03-021-3/+20
| |
* | merge: upstreamMarie2024-02-231-2/+3
|\|
| * fix: 禁止キーワードを含むノートがDelayed ↵anatawa122024-02-221-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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し忘れていたのを修正
* | merge: upstreamMarie2024-02-191-1/+1
|\|
| * (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
| |
* | merge: latest changesMarie2024-02-091-26/+43
|\|
| * fix: ↵おさむのひと2024-02-091-24/+41
| | | | | | | | | | | | | | 特定文字列を含むノートを投稿できないようにする管理画面用設定項目を追加 (#13210) * fix: 特定文字列を含むノートを投稿できないようにする管理画面用設定項目を追加 * Serviceでチェックするように変更
| * refactor(backend): exist -> exists (#13203)かっこかり2024-02-081-2/+2
| | | | | | | | | | * refactor(backend): exist -> exists * fix
* | merge: upstreamMarie2024-01-151-7/+26
|\|
| * fix(backend): 虚無ノートを投稿できる問題の修正と `api.json` ↵zyoshoka2024-01-131-7/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | の OpenAPI Specification 3.1.0 への対応 (#12969) * fix(backend): `text: null`だけのノートは投稿できないように * add test * Update CHANGELOG.md * chore: bump OpenAPI Specification from 3.0.0 to 3.1.0 * chore: テストがすでにコメントで記述されていたのでそっちを使うことにする * fix test * fix(backend): prohibit posting whitespace-only notes * Update CHANGELOG.md * fix(backend): `renoteId`または`fileIds`(`mediaIds`)または`poll`が`null`でない場合に、`text が空白文字のみで構成されたリクエストになることを許可して、結果は`text: null`を返すように * test(backend): 引用renoteで空白文字のみで構成されたtextにするとレスポンスが`text: null`になることをチェックするテストを追加 * fix(frontend): `text`が`null`であって`renoteId`と`replyId`が`null`でないようなノートは引用リノートとして表示するように * fix(misskey-js): OpenAPI 3.1に対応 * fix(misskey-js): 型生成をOpenAPI Specification 3.1.0に対応 * fix(ci): `validate-api.json`をOpenAPI Specification 3.1.0に対応 * fix(ci): スキーマ書き換えの際のミスを修正 * Revert "fix(frontend): `text`が`null`であって`renoteId`と`replyId`が`null`でないようなノートは引用リノートとして表示するように" This reverts commit a9ca55343df6ea1679599acbc4801f78aa3a242b. * fix(misskey-js): `build-misskey-js-with-types`時は`api.json`のGETをスキップするように * Revert "fix(misskey-js): `build-misskey-js-with-types`時は`api.json`のGETをスキップするように" This reverts commit 865458989f9ddacc38d1bb3743a41ea828dbf324. * fix(misskey-js): `openapi-parser`で`validate`のかわりに`parse`を用いるように * Update CHANGELOG.md
* | upd: higher character limit for poll optionsMarie2024-01-021-1/+1
| | | | | | | | | | | | Limited to 150 to account for {}, "" and commas in DB column Closes #297
* | upd: Note Length customizationMarie2023-12-311-2/+14
| | | | | | | | | | | | | | | | note length is now configurable through the config file Closes #281 falls back to 3000 (misskey default) if not used/included in config
* | merge: upstreamMarie2023-12-231-1/+1
|\|
| * Replace deprecated `Repository.findOneById()` (#12426)woxtu2023-11-241-1/+1
| |
* | upd: increase cw limitMar0xy2023-12-031-1/+1
| | | | | | | | Closes transfem-org/Sharkey#193
* | chore: replace icons, change errorsMar0xy2023-11-231-1/+1
|/
* fix(backend): 非公開の投稿に対して返信できないように (#12333)zyoshoka2023-11-151-0/+8
| | | | | | | * fix(backend): 非公開の投稿に対して返信できないように * Update CHANGELOG.md * fix: test
* feat: ↵おさむのひと2023-11-031-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | チャンネル内→チャンネル外へのリノート制限機能追加 (#12230) * チャンネル内→チャンネル外へのリノート制限機能追加 * fix CHANGELOG.md * コメント対応(canRenoteSwitch→allowRenoteToExternal) * コメント対応(別チャンネルへのリノート対策) * コメント対応(canRenote->allowRenoteToExternal) * fix comment * Update misskey-js.api.md * :v: --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* CWを使用する場合、注釈を空にすることを許可しないsyuilo2023-11-031-2/+2
| | | | Resolve #12217
* fix(backend): We can renote pure renote (#12171)anatawa122023-10-301-2/+3
| | | | | | | | | | | | | | | | | | | | | | | * chore: make pure renote detection an function * fix: we can renote pure renote * docs(changelog): リノートをリノートできるのを修正 * fix: remaining debug log * chore: move isPureRenote to misc * chore: make isPureRenote type guard * chore: use isPureRenote in other places * fix CHANGELOG * style: fix lint --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* Disallow renote of direct note (#11970)anatawa122023-10-051-0/+14
| | | | | | | | | | | | | * chore: renoteに関するチェックをまとめる * fix: ダイレクト投稿をrenoteできる * fix(frontend): 自分のダイレクト投稿をrenoteできる * docs(changelog): ダイレクト投稿をリノートできてしまう * fix lint * chore(backend): visibilityに関するエラーをApi Errorとして返す
* fix(backend): fix notes/create validationsyuilo2023-09-291-1/+1
|
* refactor(backend): update directory structure for modelssyuilo2023-09-201-4/+4
|
* 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
* chore(backend): Resolve `import/no-default-export` rule violations (#11732)woxtu2023-08-171-2/+1
| | | | | * Disable `import/no-default-export` properly * Disable `import/no-default-export`
* 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.
* update deps (#11409)syuilo2023-07-311-1/+1
| | | | | | | | | | | | | | | | | * update deps * Update .eslintrc.js * Update .eslintrc.js * lint * lint * Update update.ts * update deps * Update .eslintrc.js
* 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>
* refactor(backend): 存在確認の`findOneBy`を`exist`に置き換え (#11224)okayurisotto2023-07-111-8/+12
| | | | | * refactor(backend): 存在確認の`findOneBy`を`exist`に置き換え * cleanup
* feat: ↵syuilo2023-05-191-1/+1
| | | | センシティブなカスタム絵文字のリアクションを受け入れない設定を追加
* feat: チャンネルの削除syuilo2023-05-061-1/+1
| | | | | Resolve #7171 Resolve #9935