1
0

upd: import own replies to own tweets

This commit is contained in:
Mar0xy
2023-11-17 20:10:16 +01:00
parent 13600e0abc
commit 4929467016
3 changed files with 34 additions and 7 deletions
+2 -2
View File
@@ -272,8 +272,8 @@ export class QueueService {
}
@bindThis
public createImportTweetsToDbJob(user: ThinUser, targets: string[]) {
const jobs = targets.map(rel => this.generateToDbJobData('importTweetsToDb', { user, target: rel }));
public createImportTweetsToDbJob(user: ThinUser, targets: string[], note: MiNote['id'] | null) {
const jobs = targets.map(rel => this.generateToDbJobData('importTweetsToDb', { user, target: rel, note }));
return this.dbQueue.addBulk(jobs);
}