This commit is contained in:
syuilo 2023-10-19 07:59:58 +09:00
parent fcc4864080
commit 2dfbf97db4
7 changed files with 7 additions and 7 deletions

View file

@ -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;
}
}

View file

@ -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;
}
}

View file

@ -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;
}
}

View file

@ -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;
}
}

View file

@ -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;
}
}

View file

@ -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;
}
}

View file

@ -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;
}
}