Fix: ローカルにフォロワー限定投稿が流れてくる (#5598)
This commit is contained in:
		| @@ -25,17 +25,8 @@ export default class extends Channel { | ||||
| 	@autobind | ||||
| 	private async onNote(note: PackedNote) { | ||||
| 		if ((note.user as PackedUser).host !== null) return; | ||||
| 		if (note.visibility === 'home') return; | ||||
| 		if (note.visibility !== 'public') return; | ||||
|  | ||||
| 		if (['followers', 'specified'].includes(note.visibility)) { | ||||
| 			note = await Notes.pack(note.id, this.user, { | ||||
| 				detail: true | ||||
| 			}); | ||||
|  | ||||
| 			if (note.isHidden) { | ||||
| 				return; | ||||
| 			} | ||||
| 		} else { | ||||
| 		// リプライなら再pack | ||||
| 		if (note.replyId != null) { | ||||
| 			note.reply = await Notes.pack(note.replyId, this.user, { | ||||
| @@ -48,7 +39,6 @@ export default class extends Channel { | ||||
| 				detail: true | ||||
| 			}); | ||||
| 		} | ||||
| 		} | ||||
|  | ||||
| 		// 流れてきたNoteがミュートしているユーザーが関わるものだったら無視する | ||||
| 		if (shouldMuteThisNote(note, this.muting)) return; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MeiMei
					MeiMei