feat: improve follow export

This commit is contained in:
syuilo 2021-12-10 01:22:35 +09:00
parent 46c0280764
commit 20134a5367
7 changed files with 156 additions and 84 deletions

View file

@ -126,9 +126,11 @@ export function createExportNotesJob(user: ThinUser) {
});
}
export function createExportFollowingJob(user: ThinUser) {
export function createExportFollowingJob(user: ThinUser, excludeMuting = false, excludeInactive = false) {
return dbQueue.add('exportFollowing', {
user: user,
excludeMuting,
excludeInactive,
}, {
removeOnComplete: true,
removeOnFail: true,