Skip to content

Commit

Permalink
fix: public to home moderation doesn't remove note from VRTL
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed May 9, 2024
1 parent 38526a8 commit 21a6e69
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,14 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
// remove from funout local timeline
const redisPipeline = this.redisForTimelines.pipeline();
this.fanoutTimelineService.remove('localTimeline', note.id, redisPipeline);
this.fanoutTimelineService.remove('vmimiRelayTimeline', note.id, redisPipeline);
if (note.fileIds.length > 0) {
this.fanoutTimelineService.remove('localTimelineWithFiles', note.id, redisPipeline);
this.fanoutTimelineService.remove('vmimiRelayTimelineWithFiles', note.id, redisPipeline);
}
for (const renote of renotes) {
this.fanoutTimelineService.remove('localTimeline', renote.id, redisPipeline);
this.fanoutTimelineService.remove('vmimiRelayTimeline', renote.id, redisPipeline);
}
await redisPipeline.exec();

Expand Down

0 comments on commit 21a6e69

Please sign in to comment.