Skip to content

Commit

Permalink
Merge pull request #189 from anatawa12/fix-vstl-to-home-moderation
Browse files Browse the repository at this point in the history
fix: public to home moderation doesn't remove note from VRTL
  • Loading branch information
anatawa12 authored May 12, 2024
2 parents 38526a8 + 21a6e69 commit e1c67b5
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 e1c67b5

Please sign in to comment.