[Server] Fix #3928
This commit is contained in:
		| @@ -13,6 +13,7 @@ unreleased | |||||||
| * `__`でも太字構文を使えるように(アルファベットのみ) | * `__`でも太字構文を使えるように(アルファベットのみ) | ||||||
| * ハッシュタグ判定の強化 | * ハッシュタグ判定の強化 | ||||||
| * ストーク機能の廃止 | * ストーク機能の廃止 | ||||||
|  | * ストリームで投稿が流れてきたとき、返信先が「この投稿は非公開です」となる問題を修正 | ||||||
| * 関係のない返信がタイムラインに流れる問題を修正 | * 関係のない返信がタイムラインに流れる問題を修正 | ||||||
| * 常にメディアを閲覧注意として投稿するオプションが機能していなかった問題を修正 | * 常にメディアを閲覧注意として投稿するオプションが機能していなかった問題を修正 | ||||||
| * クライアントのAPIリクエストをストリーム経由で行うオプションを廃止 | * クライアントのAPIリクエストをストリーム経由で行うオプションを廃止 | ||||||
|   | |||||||
| @@ -28,6 +28,12 @@ export default class extends Channel { | |||||||
|  |  | ||||||
| 	@autobind | 	@autobind | ||||||
| 	private async onNote(note: any) { | 	private async onNote(note: any) { | ||||||
|  | 		// リプライなら再pack | ||||||
|  | 		if (note.replyId != null) { | ||||||
|  | 			note.reply = await pack(note.replyId, this.user, { | ||||||
|  | 				detail: true | ||||||
|  | 			}); | ||||||
|  | 		} | ||||||
| 		// Renoteなら再pack | 		// Renoteなら再pack | ||||||
| 		if (note.renoteId != null) { | 		if (note.renoteId != null) { | ||||||
| 			note.renote = await pack(note.renoteId, this.user, { | 			note.renote = await pack(note.renoteId, this.user, { | ||||||
|   | |||||||
| @@ -22,6 +22,12 @@ export default class extends Channel { | |||||||
|  |  | ||||||
| 	@autobind | 	@autobind | ||||||
| 	private async onNote(note: any) { | 	private async onNote(note: any) { | ||||||
|  | 		// リプライなら再pack | ||||||
|  | 		if (note.replyId != null) { | ||||||
|  | 			note.reply = await pack(note.replyId, this.user, { | ||||||
|  | 				detail: true | ||||||
|  | 			}); | ||||||
|  | 		} | ||||||
| 		// Renoteなら再pack | 		// Renoteなら再pack | ||||||
| 		if (note.renoteId != null) { | 		if (note.renoteId != null) { | ||||||
| 			note.renote = await pack(note.renoteId, this.user, { | 			note.renote = await pack(note.renoteId, this.user, { | ||||||
|   | |||||||
| @@ -27,6 +27,12 @@ export default class extends Channel { | |||||||
|  |  | ||||||
| 	@autobind | 	@autobind | ||||||
| 	private async onNewNote(note: any) { | 	private async onNewNote(note: any) { | ||||||
|  | 		// リプライなら再pack | ||||||
|  | 		if (note.replyId != null) { | ||||||
|  | 			note.reply = await pack(note.replyId, this.user, { | ||||||
|  | 				detail: true | ||||||
|  | 			}); | ||||||
|  | 		} | ||||||
| 		// Renoteなら再pack | 		// Renoteなら再pack | ||||||
| 		if (note.renoteId != null) { | 		if (note.renoteId != null) { | ||||||
| 			note.renote = await pack(note.renoteId, this.user, { | 			note.renote = await pack(note.renoteId, this.user, { | ||||||
|   | |||||||
| @@ -28,6 +28,12 @@ export default class extends Channel { | |||||||
|  |  | ||||||
| 	@autobind | 	@autobind | ||||||
| 	private async onNote(note: any) { | 	private async onNote(note: any) { | ||||||
|  | 		// リプライなら再pack | ||||||
|  | 		if (note.replyId != null) { | ||||||
|  | 			note.reply = await pack(note.replyId, this.user, { | ||||||
|  | 				detail: true | ||||||
|  | 			}); | ||||||
|  | 		} | ||||||
| 		// Renoteなら再pack | 		// Renoteなら再pack | ||||||
| 		if (note.renoteId != null) { | 		if (note.renoteId != null) { | ||||||
| 			note.renote = await pack(note.renoteId, this.user, { | 			note.renote = await pack(note.renoteId, this.user, { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo