wip
This commit is contained in:
parent
e0618e9443
commit
c1be538ccf
|
@ -45,8 +45,9 @@ class ChannelChannel extends Channel {
|
|||
|
||||
if (note.renote && !note.text && isUserRelated(note, this.userIdsWhoMeMutingRenotes)) return;
|
||||
|
||||
if (note.renote) {
|
||||
// TODO: ZQT: populate my reaction
|
||||
if (this.user && note.renote && !note.text) {
|
||||
const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renote, this.user.id);
|
||||
note.renote.myReaction = myRenoteReaction;
|
||||
}
|
||||
|
||||
this.connection.cacheNote(note);
|
||||
|
|
|
@ -71,8 +71,9 @@ class GlobalTimelineChannel extends Channel {
|
|||
|
||||
if (note.renote && !note.text && isUserRelated(note, this.userIdsWhoMeMutingRenotes)) return;
|
||||
|
||||
if (note.renote) {
|
||||
// TODO: ZQT: populate my reaction
|
||||
if (this.user && note.renote && !note.text) {
|
||||
const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renote, this.user.id);
|
||||
note.renote.myReaction = myRenoteReaction;
|
||||
}
|
||||
|
||||
this.connection.cacheNote(note);
|
||||
|
|
|
@ -50,8 +50,9 @@ class HashtagChannel extends Channel {
|
|||
|
||||
if (note.renote && !note.text && isUserRelated(note, this.userIdsWhoMeMutingRenotes)) return;
|
||||
|
||||
if (note.renote) {
|
||||
// TODO: ZQT: populate my reaction
|
||||
if (this.user && note.renote && !note.text) {
|
||||
const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renote, this.user.id);
|
||||
note.renote.myReaction = myRenoteReaction;
|
||||
}
|
||||
|
||||
this.connection.cacheNote(note);
|
||||
|
|
|
@ -73,8 +73,9 @@ class HomeTimelineChannel extends Channel {
|
|||
|
||||
if (note.renote && !note.text && isUserRelated(note, this.userIdsWhoMeMutingRenotes)) return;
|
||||
|
||||
if (note.renote) {
|
||||
// TODO: ZQT: populate my reaction
|
||||
if (this.user && note.renote && !note.text) {
|
||||
const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renote, this.user.id);
|
||||
note.renote.myReaction = myRenoteReaction;
|
||||
}
|
||||
|
||||
this.connection.cacheNote(note);
|
||||
|
|
|
@ -87,8 +87,9 @@ class HybridTimelineChannel extends Channel {
|
|||
|
||||
if (note.renote && !note.text && isUserRelated(note, this.userIdsWhoMeMutingRenotes)) return;
|
||||
|
||||
if (note.renote) {
|
||||
// TODO: ZQT: populate my reaction
|
||||
if (this.user && note.renote && !note.text) {
|
||||
const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renote, this.user.id);
|
||||
note.renote.myReaction = myRenoteReaction;
|
||||
}
|
||||
|
||||
this.connection.cacheNote(note);
|
||||
|
|
|
@ -70,8 +70,9 @@ class LocalTimelineChannel extends Channel {
|
|||
|
||||
if (note.renote && !note.text && isUserRelated(note, this.userIdsWhoMeMutingRenotes)) return;
|
||||
|
||||
if (note.renote) {
|
||||
// TODO: ZQT: populate my reaction
|
||||
if (this.user && note.renote && !note.text) {
|
||||
const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renote, this.user.id);
|
||||
note.renote.myReaction = myRenoteReaction;
|
||||
}
|
||||
|
||||
this.connection.cacheNote(note);
|
||||
|
|
|
@ -102,8 +102,9 @@ class UserListChannel extends Channel {
|
|||
|
||||
if (note.renote && !note.text && isUserRelated(note, this.userIdsWhoMeMutingRenotes)) return;
|
||||
|
||||
if (note.renote) {
|
||||
// TODO: ZQT: populate my reaction
|
||||
if (this.user && note.renote && !note.text) {
|
||||
const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.renote, this.user.id);
|
||||
note.renote.myReaction = myRenoteReaction;
|
||||
}
|
||||
|
||||
this.connection.cacheNote(note);
|
||||
|
|
Loading…
Reference in New Issue