diff options
| author | anatawa12 <anatawa12@icloud.com> | 2023-12-22 14:03:39 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-22 14:03:39 +0900 |
| commit | 52b94dbc4ab60aa6efba927ef8df509a3bb0d046 (patch) | |
| tree | dbf7cb98b5712a1382a95aecc816727d52f1b2ff /packages/backend/src/misc | |
| parent | fix(backend): テストが死んでいるのを修正 (#12738) (diff) | |
| download | misskey-52b94dbc4ab60aa6efba927ef8df509a3bb0d046.tar.gz misskey-52b94dbc4ab60aa6efba927ef8df509a3bb0d046.tar.bz2 misskey-52b94dbc4ab60aa6efba927ef8df509a3bb0d046.zip | |
fix: 引用RNがpure RNとして連合され、pure RNが引用RNとして連合される (#12744)
* fix: quote notes are rendered as pure renote
* fix: filesが指定されてて空配列のときにQuote扱いされる
* chore: isQuoteの仕様をmisc/is-quote.tsと揃える
* docs: is-quote.tsの方にNoteCreateService.isQuoteのことを書いて更新忘れを防ぐ
Diffstat (limited to 'packages/backend/src/misc')
| -rw-r--r-- | packages/backend/src/misc/is-quote.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/backend/src/misc/is-quote.ts b/packages/backend/src/misc/is-quote.ts index 059f6a4b5f..db72d1d57a 100644 --- a/packages/backend/src/misc/is-quote.ts +++ b/packages/backend/src/misc/is-quote.ts @@ -7,5 +7,6 @@ import type { MiNote } from '@/models/Note.js'; // eslint-disable-next-line import/no-default-export export default function(note: MiNote): boolean { + // sync with NoteCreateService.isQuote return note.renoteId != null && (note.text != null || note.hasPoll || (note.fileIds != null && note.fileIds.length > 0)); } |