fix(backend): GTLの「リノートを表示」オプションが機能しないのを修正 (#12234)
* fix(backend): GTLの「リノートを表示」オプションが機能しないのを修正 (#12233) * docs: Update changelog * Apply suggestions from code review Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
		| @@ -87,6 +87,16 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
| 			if (ps.withFiles) { | ||||
| 				query.andWhere('note.fileIds != \'{}\''); | ||||
| 			} | ||||
|  | ||||
| 			if (ps.withRenotes === false) { | ||||
| 				query.andWhere(new Brackets(qb => { | ||||
| 					qb.where('note.renoteId IS NULL'); | ||||
| 					qb.orWhere(new Brackets(qb => { | ||||
| 						qb.where('note.text IS NOT NULL'); | ||||
| 						qb.orWhere('note.fileIds != \'{}\''); | ||||
| 					})); | ||||
| 				})); | ||||
| 			} | ||||
| 			//#endregion | ||||
|  | ||||
| 			const timeline = await query.limit(ps.limit).getMany(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ozelot
					ozelot