refactor
This commit is contained in:
		| @@ -48,7 +48,7 @@ class ChannelChannel extends Channel { | ||||
| 		if (this.user && note.renoteId && !note.text) { | ||||
| 			if (note.renote && Object.keys(note.renote.reactions).length > 0) { | ||||
| 				const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renoteId, this.user.id); | ||||
| 				note.renote!.myReaction = myRenoteReaction; | ||||
| 				note.renote.myReaction = myRenoteReaction; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
|   | ||||
| @@ -74,7 +74,7 @@ class GlobalTimelineChannel extends Channel { | ||||
| 		if (this.user && note.renoteId && !note.text) { | ||||
| 			if (note.renote && Object.keys(note.renote.reactions).length > 0) { | ||||
| 				const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renoteId, this.user.id); | ||||
| 				note.renote!.myReaction = myRenoteReaction; | ||||
| 				note.renote.myReaction = myRenoteReaction; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
|   | ||||
| @@ -53,7 +53,7 @@ class HashtagChannel extends Channel { | ||||
| 		if (this.user && note.renoteId && !note.text) { | ||||
| 			if (note.renote && Object.keys(note.renote.reactions).length > 0) { | ||||
| 				const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renoteId, this.user.id); | ||||
| 				note.renote!.myReaction = myRenoteReaction; | ||||
| 				note.renote.myReaction = myRenoteReaction; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
|   | ||||
| @@ -76,7 +76,7 @@ class HomeTimelineChannel extends Channel { | ||||
| 		if (this.user && note.renoteId && !note.text) { | ||||
| 			if (note.renote && Object.keys(note.renote.reactions).length > 0) { | ||||
| 				const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renoteId, this.user.id); | ||||
| 				note.renote!.myReaction = myRenoteReaction; | ||||
| 				note.renote.myReaction = myRenoteReaction; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
|   | ||||
| @@ -90,7 +90,7 @@ class HybridTimelineChannel extends Channel { | ||||
| 		if (this.user && note.renoteId && !note.text) { | ||||
| 			if (note.renote && Object.keys(note.renote.reactions).length > 0) { | ||||
| 				const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renoteId, this.user.id); | ||||
| 				note.renote!.myReaction = myRenoteReaction; | ||||
| 				note.renote.myReaction = myRenoteReaction; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
|   | ||||
| @@ -73,7 +73,7 @@ class LocalTimelineChannel extends Channel { | ||||
| 		if (this.user && note.renoteId && !note.text) { | ||||
| 			if (note.renote && Object.keys(note.renote.reactions).length > 0) { | ||||
| 				const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renoteId, this.user.id); | ||||
| 				note.renote!.myReaction = myRenoteReaction; | ||||
| 				note.renote.myReaction = myRenoteReaction; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
|   | ||||
| @@ -105,7 +105,7 @@ class UserListChannel extends Channel { | ||||
| 		if (this.user && note.renoteId && !note.text) { | ||||
| 			if (note.renote && Object.keys(note.renote.reactions).length > 0) { | ||||
| 				const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renoteId, this.user.id); | ||||
| 				note.renote!.myReaction = myRenoteReaction; | ||||
| 				note.renote.myReaction = myRenoteReaction; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo