summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints/notes
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2025-07-30 21:41:46 +0900
committerGitHub <noreply@github.com>2025-07-30 21:41:46 +0900
commit8c65d8d0202c5abce3b2104b5b0f24869dd6e54c (patch)
tree728faf0751a7a0560d223fe4deeed3107ee83b91 /packages/backend/src/server/api/endpoints/notes
parentfix(frontend): inline な SearchMarker のパスが正しくない問題を... (diff)
downloadmisskey-8c65d8d0202c5abce3b2104b5b0f24869dd6e54c.tar.gz
misskey-8c65d8d0202c5abce3b2104b5b0f24869dd6e54c.tar.bz2
misskey-8c65d8d0202c5abce3b2104b5b0f24869dd6e54c.zip
test(backend): e2e/timelines.ts: 非FTT時のテストを追加, 凍結のテストを追加, これにかかる幾つかのバグ修正 (#16284)
* test(backend): 非FTT時のテストを追加 * clean up * skip test about reply * Fix #16289 * clean up * cherry pick * add renote test * Fix https://github.com/misskey-dev/misskey/issues/16293 * remove debug log
Diffstat (limited to 'packages/backend/src/server/api/endpoints/notes')
-rw-r--r--packages/backend/src/server/api/endpoints/notes/timeline.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes/timeline.ts b/packages/backend/src/server/api/endpoints/notes/timeline.ts
index c76cca1518..1f3631ae3d 100644
--- a/packages/backend/src/server/api/endpoints/notes/timeline.ts
+++ b/packages/backend/src/server/api/endpoints/notes/timeline.ts
@@ -237,7 +237,13 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
}
if (ps.withRenotes === false) {
- query.andWhere('note.renoteId IS NULL');
+ query.andWhere(new Brackets(qb => {
+ qb.orWhere('note.renoteId IS NULL');
+ qb.orWhere(new Brackets(qb => {
+ qb.orWhere('note.text IS NOT NULL');
+ qb.orWhere('note.fileIds != \'{}\'');
+ }));
+ }));
}
//#endregion