mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-26 19:14:12 +00:00 
			
		
		
		
	users/notesでDBから参照した際にチャンネル投稿のみ取得される問題を修正 (#12056)
* fix(backend): ユーザーのノート取得でDBにfallbackした際にチャンネルノートのみになる * Update CHANGELOG --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
		
							parent
							
								
									0bddd0ceae
								
							
						
					
					
						commit
						f6e1ee1d40
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -25,6 +25,7 @@ | |||
| 
 | ||||
| ### Server | ||||
| - Enhance: ストリーミングAPIのパフォーマンスを向上 | ||||
| - Fix: users/notesでDBから参照した際にチャンネル投稿のみ取得される問題を修正 | ||||
| - Fix: コントロールパネルの設定項目が正しく保存できない問題を修正 | ||||
| 
 | ||||
| ## 2023.10.1 | ||||
|  |  | |||
|  | @ -151,7 +151,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | |||
| 				.leftJoinAndSelect('renote.user', 'renoteUser'); | ||||
| 
 | ||||
| 			if (ps.withChannelNotes) { | ||||
| 				if (!isSelf) query.andWhere('channel.isSensitive = false'); | ||||
| 				if (!isSelf) query.andWhere(new Brackets(qb => { | ||||
| 					qb.orWhere('note.channelId IS NULL'); | ||||
| 					qb.orWhere('channel.isSensitive = false'); | ||||
| 				})); | ||||
| 			} else { | ||||
| 				query.andWhere('note.channelId IS NULL'); | ||||
| 			} | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue