Skip to content
Snippets Groups Projects
Commit 2dfbf97d authored by syuilo's avatar syuilo
Browse files

refactor

parent fcc48640
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment