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
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
3 changed files with 34 additions and 7 deletions

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);
}