summaryrefslogtreecommitdiff
path: root/packages/backend/src/queue/processors/RelationshipProcessorService.ts
diff options
context:
space:
mode:
authorMar0xy <marie@kaifa.ch>2023-10-18 19:48:03 +0200
committerMar0xy <marie@kaifa.ch>2023-10-18 19:48:03 +0200
commit4b230d792c2166d79c7c1531234b97c4e4d2a804 (patch)
tree39124be50d2c696e063a13a97f819a78a005a712 /packages/backend/src/queue/processors/RelationshipProcessorService.ts
parentMerge pull request #98 from transfem-org/dependabot/github_actions/actions/ch... (diff)
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadsharkey-4b230d792c2166d79c7c1531234b97c4e4d2a804.tar.gz
sharkey-4b230d792c2166d79c7c1531234b97c4e4d2a804.tar.bz2
sharkey-4b230d792c2166d79c7c1531234b97c4e4d2a804.zip
merge: upstream changes
Diffstat (limited to 'packages/backend/src/queue/processors/RelationshipProcessorService.ts')
-rw-r--r--packages/backend/src/queue/processors/RelationshipProcessorService.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/backend/src/queue/processors/RelationshipProcessorService.ts b/packages/backend/src/queue/processors/RelationshipProcessorService.ts
index 5b2d2ef313..b2d8e3631f 100644
--- a/packages/backend/src/queue/processors/RelationshipProcessorService.ts
+++ b/packages/backend/src/queue/processors/RelationshipProcessorService.ts
@@ -34,8 +34,12 @@ export class RelationshipProcessorService {
@bindThis
public async processFollow(job: Bull.Job<RelationshipJobData>): Promise<string> {
- this.logger.info(`${job.data.from.id} is trying to follow ${job.data.to.id}`);
- await this.userFollowingService.follow(job.data.from, job.data.to, job.data.requestId, job.data.silent);
+ this.logger.info(`${job.data.from.id} is trying to follow ${job.data.to.id} ${job.data.withReplies ? "with replies" : "without replies"}`);
+ await this.userFollowingService.follow(job.data.from, job.data.to, {
+ requestId: job.data.requestId,
+ silent: job.data.silent,
+ withReplies: job.data.withReplies,
+ });
return 'ok';
}